Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull out _getTileURL (for extending) and added _getZoomForURL #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jvrousseau
Copy link

This PR pulls out the L.Util.Template call into its own _getTileURL function as well as implemented the TODO of using the _getZoomForURL.

This would allow a developer to extend the L.VectorGrid.Protobuf class and generate their own tile URL without having to follow the URL skeleton scheme or re-implementing the entire _getVectorTilePromise function.

If there are any changes to the code, or if this doesn't fit into the project, just let me know.

Thanks!

@jkuebart
Copy link
Contributor

jkuebart commented Feb 4, 2017

This did not work for me with min/maxNativeZoom. The reason is that getTileSize() must be overridden to adjust for the clamped zoom level. Without it, the requested tile coordinates don't match the required zoom level. See #69.

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

Successfully merging this pull request may close these issues.

2 participants