Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3    Statistic    FMM    Blog  

MapView.AddCircle

Adds a circle overlay.

Component Version macOS Windows Linux Server iOS SDK
MapView 9.4 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "MapView.AddCircle"; MapView; JSON )   More

Parameters

Parameter Description Example
MapView The map view reference number. $$MapView
JSON The JSON to describe the circle. {
"address": "Nickenich",
"radius": 500,
"title": "Monkeybread Software",
"subtitle": "MBS is here",
"color": "#FF000077"
}

Result

Returns identifier or error.

Description

Adds a circle overlay.
The JSON may contain the following entries:
latitudeThe latitude of the coordinate.
longitudeThe longitude of the coordinate.
addressThe address to lookup to find latitude or longitude.
radiusThe radius in meter.
titleThe title for the circle.
subtitleThe subtitle for the item.
strokeColorThe stroke color as name or hex notation.
fillColorThe fill color as name or hex notation.
identifierThe identifier to use. Can be empty to get new identifier auto assigned.

You can either pass latitude and longitude together or pass the address and we lookup it to find coordinates.

Examples

Add circle for MBS with address string:

Set Variable [ $r ; Value: MBS( "MapView.AddCircle"; $$MapView; "{ \"address\": \"Nickenich\", \"radius\": 500, \"title\": \"Monkeybread Software\", \"subtitle\": \"MBS is here\", \"color\": \"#FF000077\" }") ]

Add circle for MBS with coordinates:

Set Variable [ $r ; Value: MBS( "MapView.AddCircle"; $$MapView; "{ \"longitude\": 7.329722, \"latitude\": 50.413333, \"radius\": 500, \"title\": \"Monkeybread Software\", \"subtitle\": \"MBS is here\", \"color\": \"#FF000077\" }") ]

Release notes

Example Databases

Blog Entries

Created 7th September 2019, last changed 11st September 2019


MailComposer.SetTORecipients - MapView.AddPin

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos

Start Chat