Functions
Mapifies.AddPolygon(jQuery element, Object options, Function callback) : static Function
This function allows you to add a polygon to a map using GLatLng points
jQuery | element | The element to initialise the map on. |
Object | options | The object that contains the options. |
Function | callback | The callback function to pass out after initialising the map. |
Mapifies.AddPolygon.defaults(Object polygonPoints, String polygonStrokeColor, Number polygonStrokeWeight, Number polygonStrokeOpacity, String polygonFillColor, Number polygonFillOpacity, Object mapCenter, Boolean polygonClickable) : static Object
Default options for AddPolygon
Object | polygonPoints | An array of Lat/Lng points that make up the vertexes of the polygon. |
String | polygonStrokeColor | The stroke colour for the polygon. |
Number | polygonStrokeWeight | The thickness of the polygon line. |
Number | polygonStrokeOpacity | A value from 0 to 1 of for the line opacity. |
String | polygonFillColor | The colour of the fill area for the polygon. |
Number | polygonFillOpacity | The value from 0 to 1 for the polygon fill opacity. |
Object | mapCenter | An array containing the LatLng point to center on. |
Boolean | polygonClickable | Defines if the polygon is clickable or not. Default true. |
Mapifies.RemovePolygon(jQuery element, GPolygon polygon, Function callback) : static Function
This function allows you to remove a polygon from the map
jQuery | element | The element to initialise the map on. |
GPolygon | polygon | The polygon to be removed |
Function | callback | The callback function to pass out after initialising the map. |