Map

Property

Function

Type

Url

Iframe code of embedded Bing, Google, etc., map Actions editor: Property > Map > Url Code: widget.content.mapUrl

string

Google api

Your google maps api key Actions editor: Property > Map > Google api Code: widget.content.googleApiKey

string

Use html

Enable custom html code Actions editor: Property > Map > Use html Code: widget.content.useUserHtml

bool

Disable ui

Hide map controls Actions editor: Property > Map > Disable ui Code: widget.content.disableDefaultUi

bool

Map type

Determines which map type to use Actions editor: Property > Map > Map type Code: widget.content.mapType

string Values: roadmap satellite hybrid terrain

Html

Custom html code Actions editor: Property > Map > Html Code: widget.content.htmlCode

string

Smart scale

Update map size at end of widget resize Actions editor: Property > Map > Smart scale Code: widget.content.smartScale

bool

Latitude

Sets latitude coordinates Actions editor: Property > Map > Latitude Code: widget.content.lat

double

Longitude

Sets longitude coordinates Actions editor: Property > Map > Longitude Code: widget.content.lng

double

Zoom

Sets map zoom level Actions editor: Property > Map > Zoom Code: widget.content.zoom

int

Current url

Gets current url Actions editor: Property > Map > Current url Code: widget.content.currentUrl

string

Current url hash

Gets current url Actions editor: Property > Map > Current url hash Code: widget.content.currentUrlHash

string

Actions

Property

Function

Go to coordinates

Change the center position of the map in geographical coordinates: latitude and longitude Actions editor: Actions > Common > Go to coordinates Code: widget.content.script.actionGotoCoordinates(QString lat, QString lng)

Go to address

Show address on map, i.e. 1600 Amphitheatre Pky, Mountain View, CA Actions editor: Actions > Common > Go to address Code: widget.content.script.actionGotoAddress(QString address)

Show user location if geolocation is enabled

Actions editor: Actions > Common > Show user location if geolocation is enabled Code: widget.content.script.actionGotoCurrentLocation()

Set zoom

Set zoom level from 1 to 21 Actions editor: Actions > Common > Set zoom Code: widget.content.script.actionSetZoom(int zoom)

Run JavaScript

Run custom javascript code Actions editor: Actions > Common > Run JavaScript Code: widget.content.script.actionRunJavaScript(QString script)

Add marker

Actions editor: Actions > Common > Add marker Code: widget.content.script.actionAddMarker(QString lat, QString lng, QString label)

Remove all markers

Actions editor: Actions > Common > Remove all markers Code: widget.content.script.actionRemoveMarkers()

Events

Property

Function

Url changed

Event when url is changed Actions editor: Event > Url changed Code: widget.content.script.eventUrlChanged()

Last updated