Recent activity
Subscribe to this feed
ddiogo replied on April 08, 2008 18:36 to the idea "Markers and Panning" in Modest Maps:
ddiogo shared an idea in Modest Maps on April 08, 2008 17:04:
Markers and PanningCorrected another small issue with the markers that I thought I'd let you know about:
When firing a panning animation on the map, the markers wouldn't get updated correctly, while the well was moving.
The solution I implemented is as follows (the modifications were aplied to the AS2 1.0 version):
in the TileGrid class, I added the method:
public function getWellPosition():Point
{
return new Point(__well._x, __well._y);
}
in the Map class, I modified:
(panMap(): lines 434-435)
__startingPosition = grid.getWellPosition();
__currentPosition = __startingPosition.clone();
(animationProcess(): line 490)
onPanned(new Point(__currentPosition.x-__startingPosition.x, __currentPosition.y-__startingPosition.y));
If there's a better way of solving this, please let me know...
ddiogo replied on April 03, 2008 17:50 to the question "Vanishing markers" in Modest Maps:
ddiogo asked a question in Modest Maps on April 03, 2008 16:06:
Vanishing markersHi,
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
Loading Profile...
