ScriptDoc Reference

Functions

Mapifies.AddPolyline(jQuery element, Object options, Function callback) : static Function

This function allows you to add a polyline 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.AddPolyline.defaults(Object polylinePoints, String polylineStrokeColor, Number polylineStrokeWidth, Number polylineStrokeOpacity, Object mapCenter, Boolean polylineGeodesic, Boolean polylineClickable) : static Object

Default options for AddPolyline

ObjectpolylinePointsAn array of Lat/Lng points that make up the vertexes of the polyline.
StringpolylineStrokeColorThe stroke colour for the polyline.
NumberpolylineStrokeWidthThe thickness of the polyline line.
NumberpolylineStrokeOpacityA value from 0 to 1 of for the line opacity.
ObjectmapCenterAn array containing the LatLng point to center on.
BooleanpolylineGeodesicDefines if the line follows the curve of the earth. Default false.
BooleanpolylineClickableDefines if the polygon is clickable or not. Default true.

Mapifies.RemovePolyline(jQuery element, GPolyline polyline, Function callback) : static Function

This function allows you to remove a polyline from the map

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