Get your own customer support community

Recent activity

Subscribe to this feed
  • idea

    ddiogo replied on April 08, 2008 18:36 to the idea "Markers and Panning" in Modest Maps:

    ddiogo
    I'm sorry, the last line should be:

    onPanned(new Point(__startingPosition.x-__currentPosition.x, __startingPosition.y-__currentPosition.y));
  • idea

    ddiogo shared an idea in Modest Maps on April 08, 2008 17:04:

    ddiogo
    Markers and Panning
    Corrected 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...
  • question

    ddiogo replied on April 03, 2008 17:50 to the question "Vanishing markers" in Modest Maps:

    ddiogo
    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?
  • question

    ddiogo asked a question in Modest Maps on April 03, 2008 16:06:

    ddiogo
    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