knapcio / react-leaflet-pixi-overlay

A react wrapper for the awesome Pixi Overlay: https://github.com/manubb/Leaflet.PixiOverlay
27 stars 16 forks source link

Rendered markers don't work with layers #25

Open rizwanliaqat97 opened 2 years ago

rizwanliaqat97 commented 2 years ago

I'm doing something like this:

<LayersControl.Overlay checked name="Test layer">
      <LayerGroup>
        <PixiOverlay markers={getMarkers()} />
      </LayerGroup>
</LayersControl.Overlay>

The markers don't disappear regardless of layer control state.

rizwanliaqat97 commented 2 years ago

I switched to PixiOverlay for faster/smoother rendering of map markers. I've to render thousands of them, ranging from a couple thousand to tens of thousands. PixiOverlay seems to do the job but I also want to hide/show different layers. That's the problem I'm facing.

FrankieDuck commented 1 year ago

@rizwanliaqat97 long shot but did you ever find a solution to this? Having the same issue