Leaflet.VectorGrid icon indicating copy to clipboard operation
Leaflet.VectorGrid copied to clipboard

Prevent VectorGrid from looping around the globe

Open arthurgailes opened this issue 4 years ago • 5 comments

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: image

In VectorGrid: image

Mouseover clear split on repeat: image

arthurgailes avatar Nov 08 '19 01:11 arthurgailes

Are there any updates to this issue?

VicAv99 avatar Nov 21 '19 18:11 VicAv99

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

am2222 avatar Jan 07 '20 16:01 am2222

I guess setting nowrap:true in layer option fixes this issue

am2222 avatar Jan 19 '20 07:01 am2222

@am2222 Have you tried it? And if so, would you mind giving a quick pseudo code example? Thanks!

arthurgailes avatar Jan 19 '20 18:01 arthurgailes

I'm having the same issue, nowrap does not seem to effect the vectorGrid, only the base layers.

filip84 avatar Mar 04 '21 10:03 filip84