Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Multiple itemizedlayers rendering mixing up #151

Open
dondos opened this issue Apr 26, 2015 · 1 comment
Open

Multiple itemizedlayers rendering mixing up #151

dondos opened this issue Apr 26, 2015 · 1 comment
Labels

Comments

@dondos
Copy link

dondos commented Apr 26, 2015

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

and this is how it looks after an hour:
wrong

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().

@hjanetzek hjanetzek added the bug label Apr 28, 2015
@hjanetzek
Copy link
Member

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

hjanetzek pushed a commit to hjanetzek/vtm that referenced this issue Nov 18, 2018
hjanetzek pushed a commit to hjanetzek/vtm that referenced this issue Nov 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants