| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
MapView.MouseCoordinate
Queries current coordinates for mouse cursor.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| MapView | 9.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
MBS( "MapView.MouseCoordinate"; MapView ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| MapView | The map view reference number. | $$MapView |
Result
Returns JSON or error.
Description
Queries current coordinates for mouse cursor.Returns JSON with latitude and longitude.
This includes mouse coordinates in mouse and view and a list of overlay identifiers below the mouse.
Examples
Query the mouse coordinate:
MBS( "MapView.MouseCoordinate"; $$MapView )
Example result:
{ "overlayIdentifiers" : [ ], "mouseInWindowY" : 406.484375, "mouseInViewY" : 146.515625, "latitude" : 53.202904366411097, "mouseInViewX" : 563.1171875, "mouseLocationY" : 1104.484375, "mouseInWindowX" : 579.1171875, "longitude" : 12.814922123294725, "mapViewID" : "78001", "mouseLocationX" : 1099.1171875 }
Example result:
{ "overlayIdentifiers" : [ ], "mouseInWindowY" : 406.484375, "mouseInViewY" : 146.515625, "latitude" : 53.202904366411097, "mouseInViewX" : 563.1171875, "mouseLocationY" : 1104.484375, "mouseInWindowX" : 579.1171875, "longitude" : 12.814922123294725, "mapViewID" : "78001", "mouseLocationX" : 1099.1171875 }
See also
Release notes
- Version 9.5
- Added MapView.MouseCoordinate function.
Blog Entries
- MBS FileMaker Plugin 9.5 - More than 5900 Functions In One Plugin
- MBS FileMaker Plugin, version 9.5pr1
This function is free to use.
Created 18th September 2019, last changed 31st March 2025