Skip to content

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

Closed
jvrousseau wants to merge 1 commit intoLeaflet:masterfrom
jvrousseau:master
Closed

pull out _getTileURL (for extending) and added _getZoomForURL#23
jvrousseau wants to merge 1 commit intoLeaflet:masterfrom
jvrousseau:master

Conversation

@jvrousseau
Copy link
Copy Markdown

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
Copy Markdown
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.

@jvrousseau jvrousseau closed this Sep 18, 2025
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