Get your own customer support community

Recent activity

Subscribe to this feed
  • idea

    inspell shared an idea in Modest Maps on December 08, 2008 10:24:

    inspell
    Probable fix for onAllTilesLoaded()
    I want to suggest a fix for onAllTilesLoaded() method in TileGrid.as -> when this method is called it raise an event (MapEvent.ALL_TILES_LOADED) but does not set the new extent, so i added this feature because i am working on a project that needs to know the new extent after all tiles are loaded. And here is the code:

    public function getExtent():MapExtent
    {
    var extent:MapExtent = new MapExtent();

    if(!this.provider) {
    throw new Error("WHOAH, no mapProvider in getExtent!");
    }

    extent.northWest = this.provider.coordinateLocation(this.topLeftCoordinate);
    extent.southEast = this.provider.coordinateLocation(this.bottomRightCoordinate);
    return extent;
    }

    protected function onAllTilesLoaded():void
    {
    //dispatchEvent(new MapEvent(MapEvent.ALL_TILES_LOADED));
    var mapevent : MapEvent = new MapEvent(MapEvent.ALL_TILES_LOADED);
    mapevent.newExtent = getExtent();
    dispatchEvent(mapevent);
    }

    The method getExtent() is the same as the method in Map.as with the only difference in the variable names. This could be done for other methods too.
  • question

    inspell asked a question in Modest Maps on December 03, 2008 10:59:

    inspell
    Markers disappear at the right part of the map (when it is at non-zero positions)
    I have pretty much the same problem as http://getsatisfaction.com/modestmaps...
    but the problem is not that i cannot drag the map at the right side of the map, but the markers there disappear just like it is described for the "dragging" on the above post.