-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Android] Update marker icon problem #4534
Comments
After today's stable release (4.0.0) it seems to be ok... interesting thing but for now looks fine. |
@mpuchala I'm going to leave this issue open and use this to track progression on above. Thanks for reaching out and providing feedback! |
@tobrun Now I'm testing it once again and it works weird. As I said before there are about 150 markers, and I'm just updating icons in a loop. For sure there is no issue with creating images because those icons are static and I create them before updating. After my investigation problem is with My last #4534 (comment) can be misleading but probably I haven't rebuild project properly and I used rc.1 where it worked fine. I have no idea what was changed (maybe core code?) but at this moment updating icon seems to be useless (because of lag - up to 30s in my scenario). I'm really interested in this issue because it's one of the most important feature in our app and the most strange thing it was ok since beta I guess... |
@mpuchala I'm still noticing the issue on version snapshot 4.1.0. I haven't tried using multiple markers but updating the position of the marker causes (depends on update frequency) lag. I have 1 marker updating the location at a fixed time interval then attempt to pan the map, in doing so I notice lag occurring at the markers updating frequency. |
@shantanu-vyas If it's adding:
instead of that try to use
I'm using it with about 150 markers, 20 polygons and polylines at a time and it takes about 500-700 ms on Nexus 4. If it's about changing position of marker it's (AFAIK) on the road map and doesn't work smooth yet (#4401). Maybe my title isn't accurate but it's only about setting new icon/image to existing/added marker (without changing position). |
Guys,
I'm updating about 150 marker icons at a time in a loop. Code is extremely simple like
When I use 4.0.0-rc.1 it's more or less ok (about 1000ms). Problem is with current snapshot because exactly same code can take up to 25 seconds.
Example of log:
Is it known issue? Or maybe you would change something and there will be possibility to update all of them at the same time? If not, current solution seems to be useless with more than few icons...
@tobrun I would be grateful for any clarification
EDIT:
Interested thing - it looks like on rc.1 it worked probably in other way - most of markers is being updated in almost no time (core changes?). Below is my log (in contrast to previous one) where you can find only one marker which took time.
The text was updated successfully, but these errors were encountered: