Leaflet.VectorGrid
Leaflet.VectorGrid copied to clipboard
Prevent VectorGrid from looping around the globe
Hello,
I've found that the polygons draw in repeat around the globe when adding the vectorgrid to the map (doesn't happen in L.geoJson). This causes some interaction problems where mouseover effects will render on the repeat of the globe rather than the globe itself
Thanks for all of your hard work on this wonderful plugin.
In L.geoJson:
In VectorGrid:
Mouseover clear split on repeat:
Are there any updates to this issue?
I have also noticed that sometimes tiles are only loaded in one of the globes and when I zoom on on side of the globe it does not show anything. so I have to move to the other side of globe to see it
I guess setting nowrap:true
in layer option fixes this issue
@am2222 Have you tried it? And if so, would you mind giving a quick pseudo code example? Thanks!
I'm having the same issue, nowrap does not seem to effect the vectorGrid, only the base layers.