ScriptDoc Reference

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

jQueryelementThe element to initialise the map on.
ObjectoptionsThe object that contains the options.
FunctioncallbackThe 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

ObjectpolygonPointsAn array of Lat/Lng points that make up the vertexes of the polygon.
StringpolygonStrokeColorThe stroke colour for the polygon.
NumberpolygonStrokeWeightThe thickness of the polygon line.
NumberpolygonStrokeOpacityA value from 0 to 1 of for the line opacity.
StringpolygonFillColorThe colour of the fill area for the polygon.
NumberpolygonFillOpacityThe value from 0 to 1 for the polygon fill opacity.
ObjectmapCenterAn array containing the LatLng point to center on.
BooleanpolygonClickableDefines 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

jQueryelementThe element to initialise the map on.
GPolygonpolygonThe polygon to be removed
FunctioncallbackThe callback function to pass out after initialising the map.