Leaflet / Leaflet.VectorGrid

Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
593 stars 192 forks source link

Marker icons are being clipped #203

Open laacz opened 5 years ago

laacz commented 5 years ago

I'm using Postgis to render MVT and L.vectorGrid.protobuf to render these layers. buffer options property has no effect - icons are sliced at the edge of tile.

Are there any solutions besides generating markers as contents of the tiles themselves in postgis? That can be done, yet a bit of a hassle :)

image

PS I'm aware of similar issues being reported already, however no solution was provided for protobuf layers.

DanielShinken commented 4 years ago

Hi there, can I ask you which version of leaflet and vectorgrid are you using on this, or the code to draw icons in every point? I also am generating pbf tiles from Postgis but I just can't make custom icons for points to appear, it keeps drawing blue circle markers instead of points, hope you can help and thanks

DanielShinken commented 4 years ago

Nevermind, I got it, but got same issue as you, icons are being clipped, did you find any solution to this? thanks in advance

sadafzohra19 commented 4 years ago

Did you find any solution to this problem?

ericwei0919 commented 3 years ago

Any solution or workaround to this issue? Thanks

peter-alexander commented 1 month ago

const layer = L.vectorGrid.slicer(data, { buffer: 128, // Adjust buffer size as needed (try between 200 and 600) });