Class AWPolygon
Object
|
+--AWPolygon
- class
AWPolygon
AWPolygon is a class that encapsulates polygon information.
var myPolygon = new AWPolygon(
"myId", // The polygon identifier.
[ new AWLatLon(37.4419, -122.1419), new AWLatLon(37.4519, -122.1519), new AWLatLon(37.4519, -122.1619) ],
"myPolygonStyleId", // The polygon style identifier.
{name:"Some Name"} // user defined data.
);
Defined in awxapi-1.0.js.
data
Object data
id
String id
latlonArray
Array latlonArray
polygonStyleId
String polygonStyleId
Polygon style identifier.
AWPolygon
AWPolygon( <String> id, <Array> latlonArray, <AWPolygonStyle> polygonStyleId, <Object> data )
Parameters:
id - The polygon identifier.
latlonArray - An array of AWLatLon objects.
polygonStyleId - The polygon style identifier (optional).
data - User defined data attached to this polyline (optional).
Returns:
An instance of AWPolygon.