Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Queries coordinate for a point.

Component Version macOS Windows Linux Server iOS SDK
MapView 11.5 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "MapView.CoordinateForPoint"; MapView; X; Y )   More


Parameter Description Example
MapView The map view reference number. $$MapView
X The x coordinate relative to the map view. 5
Y The y coordinate relative to the map view. 5


Returns JSON or error.


Queries coordinate for a point.
Returns JSON, which contains longitude, latitude, x and y numbers.


Query top left coordinate:

MBS( "MapView.CoordinateForPoint"; $$MapView; 0; 0 )

Example result:
{ "y" : 0, "latitude" : 50.562339495914216, "x" : 0, "longitude" : 6.4818784225510342 }

Query bottom right coordinate:

MBS( "MapView.CoordinateForPoint"; $$MapView; MBS( "MapView.GetWidth"; $$MapView); MBS( "MapView.GetHeight"; $$MapView) )

Example result:
{ "y" : 463, "latitude" : 50.233777453829191, "x" : 870, "longitude" : 7.4504055550006285 }

See also

Release notes

Blog Entries

This function is free to use.

Created 13th October 2021, last changed 13th October 2021

MapView.Annotations - MapView.CreateWithControl