Class AWMarker
Object
|
+--AWMarker
- class
AWMarker
AWMarker is a class that encapsulates marker information.
var marker = new AWMarker(
"myId" // the marker identifier.
new AWLatLon(42.367044, -71.052742), // Location
"myMarkerStyleId", // Style identifier
{label:"Boston\nMA"} // User defined data object.
);
Defined in awxapi-1.0.js.
|
Field Summary |
Object |
data
The marker user defined data (optional). |
String |
id
The marker identifier. |
AWLatLon |
latlon
The marker location. |
String |
markerStyleId
The marker style ID. |
|
Constructor Summary |
AWMarker
( <String> id, <AWLatLon> latlon, <String> markerStyleId, <Object> data )
Create a AWMarker instance based on a location, a marker style ID, and user defined data.
|
data
Object data
The marker user defined data (optional).
id
String id
latlon
AWLatLon latlon
markerStyleId
String markerStyleId
AWMarker
AWMarker( <String> id, <AWLatLon> latlon, <String> markerStyleId, <Object> data )
Create a AWMarker instance based on a location, a marker style ID, and user defined data.
Note: The default tooltip over a marker displays the lat/lon value. However, you can
override this behavior by adding a user defined data object with a property named "label".
The value of this property is used as text for the ToolTip popup. In addition, a multiline
ToolTip can be generated from a label value, where each line is separated from the next
using a '\n' character, such as: "Hello\nWorld".
Parameters:
id - The marker identifier.
latlon - The marker location.
markerStyleId - The ID of the registered marker style (optional).