MapData
Type class
MapData is a class which holds all the data - arrays of images, areas and lines.
Sources
This information about MapData is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
MapData extends MapObject.
MapData is not extended by any other symbol.
Properties
areasType
arrayArray of MapArea objects.
bottomLatitudeType
numberDefault-90Latitude of bottom-most point of a map. All maps in amMap package have this information hardcoded in SVG file.
getAreasFromMapType
booleanDefaultfalseIf you set this to true, all areas available in SVG map will be created automatically.
leftLongitudeType
numberDefault-180Longitude of left-most point of a map. All maps in amMap package have this information hardcoded in SVG file.
mapURLType
stringPath to map SVG file. Use it if you don't include map as .js file. Loading SVG is a bit risky, as some browsers might not do this correctly - it depends on server configuration. We recommend to include maps as .js files. Application won't load svg files from hard drive, so you can test this only on web server.
mapVarType
VariableIn case you included map as js file, you should specify variable name of a map. Open your map.js file and copy variable name, for example: AmCharts.maps.worldLow
projectionType
stringDefaultmercatorProjection of the map. Projection can be also set in SVG map - all svg maps which are distributed with amMap have projection set in SVG. AmMap supports Mercator projection and simple XY projection.
rightLongitudeType
numberDefault180Longitude of right-most point of a map. All maps in amMap package have this information hardcoded in SVG file.
topLatitudeType
numberDefault90Latitude of top-most point of a map. All maps in amMap package have this information hardcoded in SVG file.
33 inherited items
alphaType
numberInherited fromMapObjectOpacity of map object.
balloonTextType
stringInherited fromMapObjectText which is displayed in a roll-over balloon. You can use the following tags:
title,description,valueandpercent.colorType
stringInherited fromMapObjectColor of MapObject
customDataType
objectInherited fromMapObjectA custom data holder.
descriptionType
stringInherited fromMapObjectDescription of MapObject. Description is displayed in DescriptionWindow (when user clicks on an object). It can also be displayed in a roll-over balloon. DescriptionWindow can display HTML formatted code.
descriptionWindowHeightType
numberInherited fromMapObjectHeight of description window.
descriptionWindowWidthType
numberInherited fromMapObjectWidth of description window.
descriptionWindowXType
numberInherited fromMapObjectX position of description window. In case it is not set, window will be placed near the mouse pointer.
descriptionWindowYType
numberInherited fromMapObjectX position of description window. In case it is not set, window will be placed near the mouse pointer.
fixedSizeType
booleanDefaulttrueInherited fromMapObjectSpecifies if the object should change the size together with the map or keep fixed size. This applies for objects with lat and long properties set, as they move together with the map.
groupIdType
stringInherited fromMapObjectId of a group. You can group MapObjects to groups. Grouped objects will change color together with this object when you roll-over it or click it. You can show/hide them using showGroup(groupId) and hideGroup(groupId) methods of AmMap class. You can also use map.zoomToGroup(groupId) methot to zoom-in the map so that all grouped objects are visible.
idType
stringInherited fromMapObjectUnique id of the object. In case it's area, id should match svg path id from SVG file. Id can be used with linkToObject property of MapObject - you can link one object to another using it.
imagesType
arrayInherited fromMapObjectArray of MapImage objects.
linesType
arrayInherited fromMapObjectArray of MapLine objects.
linkToObjectType
MapObjectInherited fromMapObjectlinkToObject can be a reference or id of some other MapObject - MapArea, MapImage or MapLine. It can also be a reference to another DataSet (but not an id). Then user clicks on this object the application would zoom-in to this objects' zoom position (if it is set) and then act as if the linkToObject was clicked. This can also be used for selecting the object you want to be selected right after the map is initialized, as DataSet extends MapObject class, you can specify linkToObject for your DataSet. When you link to another DataSet, you can build drill-down maps.
mouseEnabledType
booleanDefaulttrueInherited fromMapObjectSet this to false to make the object be irresponsive to any interactions like hover or click events.
objectTypeType
stringInherited fromMapObjectRead-only, type of the Object. Possible values are: "DataSet", "MapImage", "MapLine" and "MapArea".
passZoomValuesToTargetType
booleanDefaultfalseInherited fromMapObjectSpecifies if current zoom values should be passed to target MapObject. Useful when building drill down maps.
remainVisibleType
booleanDefaulttrueInherited fromMapObjectSpecifies if the MapObject and other objects of the same level should remain visible if it was clicked and it has children MapObjects.
rollOverColorType
stringInherited fromMapObjectRoll over color of of the object.
selectableType
booleanDefaultfalseInherited fromMapObjectSpecifies if the object can be selected even if it is not clickable. Map object is clickable if zoom properties are set or it has description or has children objects. Sometimes even non of the listed conditions is met you might need it to be clickable. You should set this property to true in this case.
selectedColorType
stringInherited fromMapObjectColor of an object when it is selected (somebody clicked on it).
showAsSelectedType
booleanDefaultfalseInherited fromMapObjectSpecifies if selectedColor should be applied to the object. AmMap can have only one selected item at a time, however there might be situations when multiple objects (areas, movies, lines) have to look like they are selected. By setting this property to true, you will be able to produce this result.
showInListType
booleanInherited fromMapObjectSpecifies if this object must be displayed in ObjectsList Title should be defined in order the object to appear there.
titleType
stringInherited fromMapObjectTitle of a MapObject. It can be displayed in the roll-over balloon and in the header of description window. All areas in SVG maps distributed with amMap has country names (titles) hard coded in the SVG file.
urlType
stringInherited fromMapObjectUrl of an object. The application will go to this url when you click on the object.
urlTargetType
stringDefault_selfInherited fromMapObjectTarget of an URL, if URL is a string, for example: "_blank", "_top".
useTargetsZoomValuesType
booleanDefaultfalseInherited fromMapObjectSpecifies if MapObject's, specified in the url zoom values should be used. Useful when building drill down maps.
zoomLatitudeType
numberInherited fromMapObjectSpecifies latitude to which map should be moved when this object is clicked
zoomLevelType
numberInherited fromMapObjectSpecifies map scale to which map should be rescaled when this object is clicked.
zoomLongitudeType
numberInherited fromMapObjectSpecifies longitude to which map should be moved when this object is clicked.
zoomXType
numberInherited fromMapObjectSpecifies x position (in percents of stage width) to which map should be moved when this object is clicked. You can also use zoomLat and zoomLong instead of zoomY and zoomY.
zoomYType
numberInherited fromMapObjectSpecifies y position (in percents of stage height) to which map should be moved when this object is clicked. You can also use zoomLat and zoomLong instead of zoomY and zoomY.
Methods
MapData does not have any methods.
Events
MapData does not have any events.