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


FlashEff 2.0
Create professional flash photo slideshows online

FREE Flash Stuff

Check out these free, fully functional AS3.0 Flash components by Jumpeye:

FlashEff 2.0 Free
(free for non-commercial use)

JC Panorama
(free for non-commercial use)

JC Play List
(fully free)

Basic Menu Pack V3
(free AS3 version)

MCTE V3
(free AS3 version)

JC Player
(free for non-commercial use)

JC Flash Map
(free for non-commercial use)

Flash Bookmarks
(fully free)

ActionScript Bridge AS2-AS3
(fully free)

JS Charts
(free for non-commercial use)

Free Trial Versions

The trial versions do have a major limitation. They will ONLY run into debugger flash player versions, such as the Flash IDE player and the activeX FP used by developers.

Switch from Free Trial version to Full version.

You can switch from Trial to Full versions in a blink of an eye.
See this tutorial in order to find out how.

We accept Google Checkout

Google Checkout Acceptance Mark

Secured by VeriSign