Optional
androidOptional
iconOptional
iconThe preferred way is using the 'icon' property, but you can still reference a local file directly. Example: "~/assets/markers/green_pin_marker.png"
Optional
idSet this in case you want to later pass it to 'removeMarker'.
Optional
iosOptional
onA callback function to invoke when the callout (popup) of this marker is tapped.
Optional
onA callback function to invoke when the marker is tapped.
Optional
selectedSet to true to select the marker when rendered - effectively showing any configured callout. Note that only 1 callout will be shown at any time on a Mapbox map. Default false.
Optional
subtitleOptional
titleOptional
update
Prefix with 'res://' and load a file from the resources folder. Details on how 'res://' is used can be found here: https://docs.nativescript.org/ui/images#load-images-from-resource Example: "res://icon.file"