-
Notifications
You must be signed in to change notification settings - Fork 196
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
Rendering Problem of points #110
Comments
Same issue has been noted here #63 as well |
I suspect this is an issue similar to #108, that is you don't have enough overlap between your tiles, which causes points to only be rendered on one side of the tile boundary. For rendering to be correct when the symbol would overlap a tile boundary, the point must be present in both of the tiles, and therefore also rendered twice. This becomes especially apparent when working with large symbols. |
Hm, that is weird. Regarding how Mapbox GL works, you can get the general idea by reading the vector tile spec's section on clipping, if you haven't already: https://www.mapbox.com/vector-tiles/specification/#clipping |
For someone else finding this and looking for better direction, add const slicerStyle = {
buffer: 500,
pane: 'dynamics',
maxZoom: 20,
vectorTileLayerStyles: {
sliced: () => {
return {
icon: new L.Icon()
};
}
}
};
this.graphicsLayer = L.vectorGrid.slicer(targetFeatures, slicerStyle).addTo(this.map); |
See #149. Sounds like the same issue. The buffer option didn't work for me, so I changed the query to add a buffer for points on the tile edge. |
Hi,
We are using pbfs from a geoserver group-layer, which contains points, lines and polygons. Lines and polygons work as expected but for some reason points don't get rendered properly in border areas when using circle markers or icons.
I am not sure if this is an issue with geoserver concerning the overlapping margins for each tile or a Leaflet.VectorGrid bug.
The text was updated successfully, but these errors were encountered: