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
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.AddPolyline.defaults(Object polylinePoints, String polylineStrokeColor, Number polylineStrokeWidth, Number polylineStrokeOpacity, Object mapCenter, Boolean polylineGeodesic, Boolean polylineClickable) : static Object
Default options for AddPolyline
Object | polylinePoints | An array of Lat/Lng points that make up the vertexes of the polyline. |
String | polylineStrokeColor | The stroke colour for the polyline. |
Number | polylineStrokeWidth | The thickness of the polyline line. |
Number | polylineStrokeOpacity | A value from 0 to 1 of for the line opacity. |
Object | mapCenter | An array containing the LatLng point to center on. |
Boolean | polylineGeodesic | Defines if the line follows the curve of the earth. Default false. |
Boolean | polylineClickable | Defines 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
jQuery | element | The element to initialise the map on. |
GPolyline | polyline | The polyline to be removed |
Function | callback | The callback function to pass out after initialising the map. |