JC Flash Map Properties
Overview | Properties | Methods | Events | Markers
Most of these properties can be set in the Component Inspector (Alt + F7).
Property | Type Component Inspector |
Description |
bounds | Rectangle no |
The Rectangle object delimiting the portion of the map currently displayed in the viewing area. The object represents the coordinates (latitude, longitude) of the top-left corner of the map and the width and height of the map which is the map's span on latitude and longitude.
Example
var myMap:JC Flash Map = new JCFlashMap();
|
center | LatLng no |
The coordinates of the center of the map, using a LatLng type of object. It contains the latitude and longitude of the coordinate. By setting this property the map can be positioned to the new location.
Example
var myMap:JC Flash Map = new JCFlashMap();
|
centerMP | MapPoint no |
The MapPoint object representing the center of the map. A MapPoint object contains X and Y coordinates of a point. By setting this property the map can be positioned to the new location.
Example
import com.jumpeye.jcflashmap.components. MapPoint;
|
customMapType | String no |
A custom type of the map. It is the name of a class that extends MapType. |
inZoom | Boolean no |
[read-only] A boolean value that specifies if the map is currently performing a zoom animation.
Example
if (myMap.inZoom)
|
lat | Number yes |
Latitude - the initial coordinate of the center of the map.
Default 0 Example
var myMap:JCFlashMap = new JCFlashMap();
|
lng | Number yes |
Longitude – the initial coordinate of the center of the map.
Default 0 Example
var myMap:JCFlashMap = new JCFlashMap();
|
mapCopyright | TextField no |
[read-only] A reference to the text field containing the copyright of the currently displayed map.
Example
myMap.mapType = "OpenStreetMap";
|
mapType | String yes |
The initial type of the map. Possible values are OpenStreetMap, OSMARender, OSMCycleMap, OpenAerialMap, MicrosoftTerrain, MicrosoftMap, MicrosoftAerial, MicrosoftHybrid, GoogleMap, GoogleSatellite, GoogleHybrid, GoogleTerrain, YahooMap, YahooSatellite, YahooHybrid, Custom. In case the "Custom" value is used, the type of the map will be userdefined, using the customMapType property.
Default OpenStreetMap. Example
var myMap:JCFlashMap = new JCFlashMap();
|
mapTypeButtonGroup | ButtonSet no |
[read-only] A reference to the group of buttons displayed on the map and used to change the type of the map. The reference is of type ButtonSet which is a wrapper for all the buttons displayed for the maps from the same map provider.
The returned object can give you access to the set of buttons displayed through a public property called buttons of type Array and through this ButtonSet object you can make different settings to the displayed buttons, by using these public properties: buttonWidth, buttonHeight, spacingX (horizontal spacing between buttons), paddingX, paddingY (horizontal and vertical padding for the buttons) and anchor (sets the anchor for the entire set of buttons to ButtonSet.ANCHOR_TOP, ButtonSet.ANCHOR_BOTTOM, ButtonSet.ANCHOR_LEFT and ButtonSet.ANCHOR_RIGHT). All the changes made to the above properties are applied only after calling the readButtons() method. Example
import com.jumpeye.jcflashmap.ui.ButtonSet;
|
mapTypeButtons | Array no |
[read-only] A list of the map type buttons displayed on the map. Each item of the array contains a reference to one of the button controls.
Example
// This code sequence shows and hides the map type buttons.
|
markerInfoWindow | MarkerInfoWindow no |
[read-only] A reference to the currently visible window control displaying information about a marker - the hint box displayed when clicking on the marker. Please note that only one hint box is visible at a time. When clicking on a marker that does not have the hint displayed, the corresponding hint will be shown and the previously displayed hint will hide.
The window is an object of type MarkerInfoWindow that has the following properties:
Example
import com.jumpeye.jcflashmap.markers. Marker;
|
markers | MarkerColl yes |
The MarkerColl object containing the list of markers applied to the current map. A marker is the equivalent of a pin used to point to a specific location on the map.
Example
import com.jumpeye.jcflashmap.markers. Marker;
|
zoom | Number yes |
The initial zoom level of the center of the map. The zoom levels depend on the type of the map and range from 0 to 22 (maximum zoom level depends on the map provider). A zoom level of 0 means zooming out to the map of the world.
OpenStreetMap maximum zoom level: 18. MicrosoftMap maximum zoom level: 21. GoogleMap maximum zoom level: 22. YahooMap maximum zoom level: 17. Default 1 Example
var myMap:JCFlashMap = new JCFlashMap();
|
zoomSlider | Slider no |
[read-only] A reference to the Slider control displayed on the map.
Example
if (myMap.zoomSlider.value >= 10)
|
Overview | Properties | Methods | Events | Markers
The free version contains watermark and can be used for trial purposes only.
Watermarked