Map

Typewidget
Dictionarynative.map
LibraryMap
Associationscom.livecode.widget.native.map
Summary

A map widget for Android, iOS, 64-bit Mac, and Web.

OSandroid, ios, mac, web
Description

This widget wraps an MKMapView on iOS and 64-bit Mac, a GoogleMap on Android, and the GoogleMaps JavaScript API on Web. It supports simple markers and polylines.

Note: In order to use the map widget on Android and Web, you must create Google Maps V2 API keys for your app, and set them in the standalone settings for the map widget via the cog icon in the Inclusions pane of the standalone settings stack.

TypeNameSummarySyntax
messagemarkerSelected

Sent when a map marker is selected

markerSelected <pMarkerTag>

- - -regionChanged

Sent when the map region changes

regionChanged

propertyanimateMovement

Whether the movement of the map view is animated or not.

set the animateMovement of <widget> to { true | false }

get the animateMovement of <widget>

- - -centerCoordinates

The coordinates at which the map view is centered.

set the centerCoordinates of <widget> to <pCoordinates>

get the centerCoordinates of <widget>

- - -markers

Marker points on the map

set the markers of <widget> to <pMarkerData>

get the markers of <widget>

- - -polylines

Polylines on the map

set the polylines of <widget> to <pMarkerData>

get the polylines of <widget>

- - -region

The region displayed by the map

set the region of <widget> to <pRegion>

get the region of <widget>

- - -scrollEnabled

Whether the scrollbar is enabled

set the scrollEnabled of <widget> to { true | false }

get the scrollEnabled of <widget>

- - -showsUserLocation

Whether to show the user's current location

set the showsUserLocation of <widget> to { true | false }

get the showsUserLocation of <widget>

- - -span

The extent of the map displayed by the widget.

set the span of <widget> to <pSpan>

get the span of <widget>

- - -zoomEnabled

Whether map zoom is enabled

set the zoomEnabled of <widget> to { true | false }

get the zoomEnabled of <widget>

widgetMap

A map widget for Android, iOS, 64-bit Mac, and Web.

set the zoomEnabled of <widget> to { true | false }

get the zoomEnabled of <widget>