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.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

MapView.Screenshot

Renders screenshot of the map view.

Component Version macOS Windows Linux Server iOS SDK
MapView 9.3 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "MapView.Screenshot"; MapView { ; ImageType; FileName } )   More

Parameters

Parameter Description Example Flags
MapView The map view reference number. $$MapView
ImageType The type of image to return.
Either JPEG, PNG, GIF or BMP. Default is JPEG.
"JPEG" Optional
FileName The filename to use for the picture.
Default is "image" with the extension matching the image type.
"test.jpg" Optional

Result

Returns container or error.

Description

Renders screenshot of the map view.
This includes annotations and overlays as they are visible.

Examples

Save screenshot to deektop:

If [ Length ( $$MapView) > 0 ]
    Set Variable [ $screenshot ; Value: MBS("MapView.Screenshot"; $$MapView; "PNG") ]
    Set Variable [ $file ; Value: MBS( "Path.AddPathComponent"; MBS( "Folders.UserDesktop" ); "mapview.png" ) ]
    Set Variable [ $r ; Value: MBS( "Container.WriteFile"; $screenshot; $file) ]
End If

See also

Release notes

Example Databases

Blog Entries

Created 1st June 2019, last changed 29th September 2020


MapView.RemoveOverlays - MapView.SelectedAnnotations

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins

Start Chat