Open dondos opened 9 years ago
It may be possible that there is a texture leak in the marker layer.
For your use-case I would recommend to write an optimized marker layer that uses a texture atlas to be able to batch the drawing of multiple marker. Or better: make a dynamic layout-layer with leaders to avoid overlaps :)
I want to display around 150 individual markers on the map. The markers must be dynamic (they represent moving cars.) I have created a single item itemizedlayer for each marker. Everything work fine for about an hour (or more, depending on the number of markers) until everything is mixed up.
This is how it looks when it's working correctly:![correct](https://cloud.githubusercontent.com/assets/9431355/7338238/a6128f46-ec4e-11e4-967a-44ba870097e9.png)
and this is how it looks after an hour:![wrong](https://cloud.githubusercontent.com/assets/9431355/7338259/11a31d66-ec4f-11e4-8bdc-86033e1e4fb0.png)
If I zoom in far enough to have only one marker visible, then it's rendered correctly. But, as soon as more than one marker is visible on the map, one of the markers is displayed correctly and the others ones starts flickering between their marker icons and the "dominant" one.
I am only using three markers (green, red and blue). The number label on the marker is created dynamically with canvas.drawText().