-
Notifications
You must be signed in to change notification settings - Fork 194
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
Rework maxNativeZoom #74
Comments
Do I understand correctly that for your second solution step 2.2 the tiles would need to keep hold of the feature geometries in order to update the path coordinates for the new dimensions? I.e. for the case of SVG, 2.1 would update the |
The fact is that the tiled renderers already keep an internal copy of the feature geometries (i.e. see the references to So step 2.1 would be setting the viewBox as in the constructor of Please keep in mind that this is a conjecture right now, I haven't spent the time to make an actual prototype and see if the methods would work. |
You're right, the renderers have references to the layers (i.e. Firing an 'update' event at the tile renderer should have the effect of running I do like the basic idea of adjusting the tiles' viewport and then rescaling the feature coordinates, and I think the first solution would be troublesome not least because extra clipping would be needed on the »sub-tiles«. I think what basically needs to be done is that the |
I'm not 100% sure, but maybe we can refactor Maybe the tiled renderers can just scale everything with a
For me, every last bit of this sounds completely crazy 🤣 🤣 🤣 |
I think the vector-tile |
https://github.com/mapbox/vector-tile-spec/tree/master/2.1
No wording about extents being identical for every layer in a vector-tile. |
@IvanSanchez @jkuebart is anybody here? |
@egemon Yes, there's somebody here. What's not here is spare time to work on this. |
@egemon I've switched to https://gitlab.com/jkuebart/Leaflet.VectorTileLayer, the readme details differences to Leaflet.VectorGrid. |
@jkuebart I don't see that listed in https://leafletjs.com/plugins#vector-tiles - Could you consider adding it to the plugins list? |
@IvanSanchez done, although I haven't done any development on it recently either. I am however using it successfully in one project. |
As @jkuebart pointed out:
I think this is a valid concern, and deserves its own issue.
A tentative approach would be to:
L.GridLayer._clampZoom
and replace it with an identity functionpxPerExtent
by (2 to the power of the zoom delta)pxOffset
for when the "data tile" and "display tile" are not aligned at their top left cornerspxOffset
in all coordinate calculations inPointLayer
,PolylineLayer
andPolygonLayer
Another approach would be:
_clampZoom
logiczoomend
event, iterate through all the tiled renderers (there's a reference inthis._vectorTiles
) andFirst approach doesn't sound too easy, and might need re-requesting tiles. Second approach sounds simpler, almost too simple.
The text was updated successfully, but these errors were encountered: