Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Adds a poly line to the map.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
MapView 9.4 Yes No No No Yes
MBS( "MapView.AddPolyline"; MapView; JSON )   More


Parameter Description Example value
MapView The map view reference number. $$MapView
JSON The JSON to describe the circle.


Returns identifier or error.


Adds a poly line to the map.
The JSON may contain the following entries:
coordinatesThe JSON array with the objects for the coordinates. Each entry can contain either longitude & latitude pair or address value.
titleThe title for the poly line.
subtitleThe subtitle for the item.
fillColorThe fill color as name or hex notation for the line.
strokeColorThe stroke color as name or hex notation for the line.
identifierThe identifier to use. Can be empty to get new identifier auto assigned.
lineWidthThe line width to use. Default 5 point.

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


Add poly line from Hamburg to Munich and Cologne:

Set Variable [ $r ; Value: MBS( "MapView.AddPolyline"; $$MapView; "{ \"coordinates\": [{\"address\": \"Hamburg, Germany\"}, {\"address\": \"Munich, Germany\"}, {\"address\": \"Cologne, Germany\"}], \"strokeColor\": \"#FF000077\" }") ]

See also

Example Databases

Blog Entries

Release notes

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

MapView.AddPolygon   -   MapView.Annotations

Feedback: Report problem or ask question.

MBS FileMaker Plugins