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

NameTypeDescription
idIntegerIdentifier.
latitudeDoubleLatitude of centre. Must be between -90 and 90.
longitudeDoubleLongitude of centre. Must be between -180 and 180.
radiusDoubleRadius in meters. Must be 1 or more.
titleStringHover label.
strokeColorStringLine colour.
strokeOpacityDoubleLine opacity. Must be between 0 and 1.
strokeWeightDoubleLine weight. Must be between 0 and 10.
fillColorStringFill colour.
fillOpacityDoubleFill 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

NameTypeDescription
idIntegerIdentifier.
origlatitudeDoubleLatitude of origin. Must be between -90 and 90.
origlongitudeDoubleLongitude of origin. Must be between -180 and 180.
destlatitudeDoubleLatitude of destination. Must be between -90 and 90.
destlongitudeDoubleLongitude of destination. Must be between -180 and 180.
titleStringHover label.
strokeColorStringLine colour.
strokeOpacityDoubleLine opacity. Must be between 0 and 1.
strokeWeightDoubleLine 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

NameTypeDescription
idIntegerIdentifier.
latitudeDoubleLatitude of centre. Must be between -90 and 90.
longitudeDoubleLongitude of centre. Must be between -180 and 180.
iconStringIcon.
titleStringHover label.
sizeIntegerIcon 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