markers

Typeproperty
Dictionarynative.map
LibraryMap
Syntax
set the markers of <widget> to <pMarkerData>
get the markers of <widget>
Associationscom.livecode.widget.native.map
Summary

Marker points on the map

OSmac, ios, android, web
Platformsdesktop, mobile
Example
local tMarkers, tMarkerData
put "55.9533,-3.1883" into tMarkerData["coordinates"]
put "Centre of Edinburgh" into tMarkerData["title"]
put tMarkerData into tMarkers["Edinburgh"]
set the markers of widget "Map" to tMarkers
Values
NameTypeDescription
Value

An array describing the marker data

Description

Allows the display of markers at specified points on the map, with associated title and optional subtitle.

The marker array has the following form: { &lt;tag for marker&gt;: { "title": &lt;title of the marker&gt;, "subtitle": &lt;optional subtitle of the marker&gt;, "coordinates": &lt;coordinates of the marker&gt; }, &lt;tag for marker&gt;: { ... }, ... }