ia.MapData Class
Contains information about a map file which has been published through the InstantAtlas publisher.
Constructor
ia.MapData
()
Item Index
Methods
Methods
_parseLayerProperties
-
data -
layer
Parses layer properties.
Parameters:
-
dataJSONThe raw data.
-
layeria.LayerBaseThe layer.
addEventListener
-
eventType -
fnc -
obj
Add an event listener.
Parameters:
-
eventTypeStringThe type of event to listen for.
-
fncFunctionThe function to call when the event occurs.
-
objObjectAn optional parent object.
dispatchEvent
-
event
Dispatch an event to the listeners.
Parameters:
-
eventObjectThe event object.
getLayer
-
id
Returns the layer that corresponds to the id.
Parameters:
-
idStringThe layer id.
Returns:
loadVisibleLayers
()
Loads the visible data layers.
parseData
-
url -
callbackFunction
Loads and parses the source file then calls the given function with the ReportConfig object as the first parameter.
Parameters:
-
urlStringThe url to the data.
-
callbackFunctionFunctionThe call back function.
parseData
-
data -
callbackFunction
Updates the data.
Parameters:
-
dataJSONThe raw data.
-
callbackFunctionFunctionThe call back function.
removeListener
-
obj
Removes all event listeners for the given object.
Parameters:
-
objObjectThe object.
Properties
googleApiKey
String
The google map api key.
googleMapType
String
The google map type.
path
String
The directory path to the data source.
Default: ""
template
String
The template number.
tilePath
String
The path to tiles for tile layers.
url
String
The url of the data source.
useGoogleMaps
Boolean
Set to true if using google maps.
Default: false
version
String
The version number.