Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3    Statistic  

MapView.Screenshot

Renders screenshot of the map view.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
MapView 9.3 Yes No No No Yes
MBS( "MapView.Screenshot"; MapView { ; ImageType; Filename } )   More

Parameters

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

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

Created 1st June 2019, last changed 1st June 2019


MapView.RemoveOverlays   -   MapView.SetAutoResizingMask

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins