Vanishing markers
Hi,
Yesterday I started to implement double-click functionality on my map project: I altered the tile grid and map classes to fire an onDoubleClick event, and on the map project I used map.pointLocation() and map.setCenterZoom() to position and zoom in using the corresponding event handler.
When I started testing, I realized that occasionally, when double-clicking on the map, all the markers would suddenly disappear. They would reappear later if I continued manipulating the map at random.
After some digging I found a possible solution:
On the TileGrid.resetTiles() method, after the call to allocateTiles(), I added
" markers.indexAtZoom(zoomLevel);
updateMarkers();"
Apparently this solves the issue but an 'official' opinion would be greatly apreciated :)
Thnx, ddiogo
Yesterday I started to implement double-click functionality on my map project: I altered the tile grid and map classes to fire an onDoubleClick event, and on the map project I used map.pointLocation() and map.setCenterZoom() to position and zoom in using the corresponding event handler.
When I started testing, I realized that occasionally, when double-clicking on the map, all the markers would suddenly disappear. They would reappear later if I continued manipulating the map at random.
After some digging I found a possible solution:
On the TileGrid.resetTiles() method, after the call to allocateTiles(), I added
" markers.indexAtZoom(zoomLevel);
updateMarkers();"
Apparently this solves the issue but an 'official' opinion would be greatly apreciated :)
Thnx, ddiogo
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Thanks for letting us know - can you clarify which version of Modest Maps you're using?
Marker indexing shouldn't be doing anything in the as3 version, we'll almost certainly be removing it in a future version. It seems like resetTiles should be updating markers in MarkerClip though, thanks!
I’m thankful
-
Inappropriate?Anytime. I'm using the AS2 version (1.0). I'm sort of stuck with it, because I will need to overlay some as2 swf tiles later on.
Congratulations on the excellent work...
By the way... Are you thinking of developing any clustering marker managers for modest maps?
I’m confident
-
Inappropriate?Not right away - it's too dependent on appearance and specific data sets and we want people to do this stuff for themselves. We're using Modest Maps so that these details are at our fingertips, and the open source library is for the stuff we're sure about :)
Loading Profile...



EMPLOYEE