Geodesix Help - Drawing functions
Jump to Circle Line Marker
Draw Circle function
Draw a circle on the map.
Syntax
Draw('Circle', id, latitude, longitude, radius, title, strokeColor, strokeOpacity, strokeWeight, fillColor, fillOpacity)
Arguments
| Name | Type | Description |
| id | Integer | Identifier. |
| latitude | Double | Latitude of centre. Must be between -90 and 90. |
| longitude | Double | Longitude of centre. Must be between -180 and 180. |
| radius | Double | Radius in meters. Must be 1 or more. |
| title | String | Hover label. |
| strokeColor | String | Line colour. |
| strokeOpacity | Double | Line opacity. Must be between 0 and 1. |
| strokeWeight | Double | Line weight. Must be between 0 and 10. |
| fillColor | String | Fill colour. |
| fillOpacity | Double | Fill opacity. Must be between 0 and 1. |
Example
=Draw("Circle", 1, 48.868916, 2.37793, 100000, "Paris", "#ff0000", 1, 1, "LightBlue", 0.3)
Open the example functions workbook
Back to top
Draw Line function
Draw a line on the map.
Syntax
Draw('Line', id, origlatitude, origlongitude, destlatitude, destlongitude, title, strokeColor, strokeOpacity, strokeWeight)
Returns
Integer, Unique identifier of the line.
Arguments
| Name | Type | Description |
| id | Integer | Identifier. |
| origlatitude | Double | Latitude of origin. Must be between -90 and 90. |
| origlongitude | Double | Longitude of origin. Must be between -180 and 180. |
| destlatitude | Double | Latitude of destination. Must be between -90 and 90. |
| destlongitude | Double | Longitude of destination. Must be between -180 and 180. |
| title | String | Hover label. |
| strokeColor | String | Line colour. |
| strokeOpacity | Double | Line opacity. Must be between 0 and 1. |
| strokeWeight | Double | Line weight. Must be between 0 and 10. |
Example
=Draw("Line", 12, 45.825284, 1.273252, 46.19155, 6.129209, "Dijon-Geneva", "Green", 1, 2)
Open the example functions workbook
Back to top
Draw Marker function
Draw a marker on the map.
Syntax
Draw('Marker', id, latitude, longitude, icon, title, size)
Returns
Integer, Unique identifier of the marker.
Arguments
| Name | Type | Description |
| id | Integer | Identifier. |
| latitude | Double | Latitude of centre. Must be between -90 and 90. |
| longitude | Double | Longitude of centre. Must be between -180 and 180. |
| icon | String | Icon. |
| title | String | Hover label. |
| size | Integer | Icon size in pixels. |
Example
=Draw("Marker", 16, 47.313063, 5.041563, "http://maps.google.com/mapfiles/kml/pal3/icon56.png", "Dijon Castle", 24)
Open the example functions workbook
Back to top