Advanced Flash Components
Search!
Search!
Home >  Forum
  SearchSearch   
UMap 1.3 RC Release notes

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> UMap ActionScript 3.0
View previous topic :: View next topic  
Author Message
dvs_code
AFC Team


Joined: 09 May 2006
Posts: 2131

PostPosted: Wed Sep 17, 2008 3:27 am    Post subject: UMap 1.3 RC Release notes Reply with quote

Features:

- UMap, zoomTo() implementation. Allows zooming to a specific point.

Code:
import com.afcomponents.umap.core.UMap;
import com.afcomponents.umap.types.LatLng;
import com.afcomponents.umap.events.MapEvent;

// create UMap
var map:UMap = new UMap();
map.setSize(550, 400);
addChild(map);

// wait for map READY event, and zoom to target point and zoom level
map.addEventListener(MapEvent.READY, ready);

function ready(event:MapEvent):void
{
   map.animateZoom = true;
   map.zoomTo(new LatLng(50,20), 4);
}


- UMap, zoomToInfoWindow parameter added (the default value is true). When info window is opened and the parameter is set, map zooms to info window preserving info window position relative to the edges of the component.

Code:
import com.afcomponents.umap.core.UMap;
import com.afcomponents.umap.types.LatLng;
import com.afcomponents.umap.events.MapEvent;

// create UMap
var map:UMap = new UMap();
map.setSize(550, 400);
addChild(map);

// open up info window, set new map center
map.openInfoWindow({position:new LatLng(40,30), title:"Hello World!", content:"Lorem ipsum dolor sit amet.", autoClose:false})
map.setCenter(new LatLng(-50,-30));

// wait for map READY event, and zoom to the IW
map.addEventListener(MapEvent.READY, ready);

function ready(event:MapEvent):void
{
   map.zoomToInfoWindow = true;
   map.animateZoom = true;
   map.setZoom(4);
}


- Scale control added.

Code:
// don't forget to put scale control into the library
import com.afcomponents.umap.core.UMap;
import com.afcomponents.umap.gui.ScaleControls;

// create UMap
var map:UMap = new UMap();
map.setSize(550, 400);
addChild(map);

// create scale control and set US measure system
var scaleControl:ScaleControl = new ScaleControl();
scaleControl.units = ScaleControl.IMPERIAL;

// add control to UMap
map.addControl(scaleControl);


- Dummy Provider.

Code:
import com.afcomponents.umap.core.UMap;
import com.afcomponents.umap.providers.Providers;

// create UMap
var map:UMap = new UMap();
map.setSize(550, 400);
addChild(map);

// set Dummy provider which does nothing
map.setProvider(Providers.DUMMY);


Bug Fixes:

- Circle radius dynamic limitation (8000 km MAX)


- Feed layer added, special layer which can load any supported type of feed (KML, GeoRSS, or GPX).

Code:
import com.afcomponents.umap.core.UMap;
import com.afcomponents.umap.overlays.FeedLayer;

// create UMap
var map:UMap = new UMap();
map.setSize(550, 400);
addChild(map);

// create and load feed
var feed:FeedLayer = new FeedLayer();
feed.load("http://www.umapper.com/download/maps/kml/4501.kml");
map.addOverlay(feed);


old release notes here:

http://www.afcomponents.com/forum/viewtopic.php?p=10296
_________________
Dmitry Stolyarov
AFC Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> UMap ActionScript 3.0 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group