My account
Shopping cart
Knowledge base
Support


JC Flash Map Methods



Overview | Properties | Methods | Events | Markers

Method Description
addMarker(newMarker:Marker): void Adds a new marker to the map.

Parameters
newMarker:Marker - the instance of the Marker object that will be added to the map.

Example
import com.jumpeye.jcflashmap.components. MapPoint;

var mk:Marker = new Marker();
mk.id = "1234";
mk.lat = 47.067;
mk.lng = 21.933;
mk.details = "This here is Oradea, Romania";
myMap.addMarker(mk);
var addedMk:Marker = myMap.getMarkerByID("1234");
trace(addedMk); //Marker 1234 at (47.067,21.933)
addMarkers(markersList:Array): void Adds a list of markers to the map.

Parameters
markersList:Array - an array containing instances of the new Marker objects that will be added to the map.

Example
import com.jumpeye.jcflashmap.components. MapPoint;

var mkParis:Marker = new Marker();
mkParis.id = "1";
mkParis.lat = 48.866667;
mkParis.lng = 2.333333;
mkParis.details = "Good wine here";

var mkLondon:Marker = new Marker();
mkLondon.id = "2";
mkLondon.lat = 51.500;
mkLondon.lng = -0.117;
mkLondon.details = "They have red double decker buses";

var mkZurich:Marker = new Marker();
mkZurich.id = "3";
mkZurich.lat = 47.367;
mkZurich.lng = 8.550;
mkZurich.details = "They make the best watches and chocolate";

var markers:Array = [mkParis, mkLondon, mkZurich];
myMap.addMarkers(markers);
getMarkerByID(id:String): Marker Gets a reference to a one of the markers on the map, according to the marker id passed as argument.

Parameters
id:String - the id of the marker to be referenced.

Returns
Marker - a reference to the marker whose id was passed as argument to the method.

Example
import com.jumpeye.jcflashmap.components. MapPoint;

var mk:Marker = new Marker();
mk.id = "1234";
mk.lat = 47.067;
mk.lng = 21.933;
mk.details = "This here is Oradea, Romania";
myMap.addMarker(mk);
var addedMk:Marker = myMap.getMarkerByID("1234");
trace(addedMk); //Marker 1234 at (47.067,21.933)
removeAllMarkers():void Removes all the markers from the map.

Example
myMap.removeAllMarkers();
removeMarker(targetMarker: Marker):Boolean Removes a marker from the map.

Parameters
targetMarker:Marker - the Marker instance that should be removed from the map.

Returns
Boolean - true if the marker was removed successfully, false otherwise

Example
import com.jumpeye.jcflashmap.components.MapPoint;

var mk:Marker = myMap.getMarkerByID("2");
var wasRemoved:Boolean = myMap.removeMarker(mk);
if (wasRemoved)
     trace("Marker was removed with success");
else
     trace("Marker could not removed");

Overview | Properties | Methods | Events | Markers

Flash component to display online maps from all of the major map providers. The pack contains the .mxp install file, the documentation file and the sample file.
Map providers: OpenStreetMap, Google Maps, Yahoo! Maps, Microsoft Live Maps
Several types of map, depending on each map provider
Fully customizable
Easy navigation within the map using drag&drop, double click, advanced controls
Different levels of zoom
The free version contains watermark and can be used for trial purposes only.
Watermarked