Get your own customer support community
 

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
 
indifferent I’m undecided
Inappropriate?
1 person has this question

User_default_medium