Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Expose SourceInfo on Map object #1083

Closed
mikemorris opened this issue Mar 24, 2015 · 3 comments
Closed

Expose SourceInfo on Map object #1083

mikemorris opened this issue Mar 24, 2015 · 3 comments

Comments

@mikemorris
Copy link
Contributor

Need some way to grab center, bounds and similar keys from SourceInfo to build a getInfo Tilelive API method similar to Vector.prototype.getInfo.

@jfirebaugh
Copy link
Contributor

I think this wants the center and zoom from the style (mapbox/mapbox-gl-style-spec#247, not implemented yet). Grabbing it from the source is weird because there can be multiple sources.

@mikemorris
Copy link
Contributor Author

Yea, looking at Mapnik this info seems to be tied directly to the XML stylesheet. I was thinking that we would somehow composite the parameters from multiple sources together, but implementing this on the style itself would be much simpler.

@jfirebaugh
Copy link
Contributor

We're holding on building out the tilelive API for GL -- it doesn't have a clear use case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants