MBS FileMaker Plugin Example Databases

MapKit Snapshots

All examples are included with download of MBS FileMaker Plugin.

MapKit Snapshots.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
Value Lists2
Custom Functions0
Custom Menus0
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Snapshots
20 fields defined, 2 records
Snapshots

Fields

Table Name: Snapshots - 20 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
widthNormal, NumberAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      heightNormal, NumberAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          scaleNormal, NumberAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
                showsPointsOfInterestNormal, NumberAuto-Enter:
                • Allow editing
                Validation:
                • Only during data entry
                Storage:
                • Repetitions: 1
                • Indexing: None
                • Automatically create indexes as needed
                • Index Language: German
                    showsBuildingsNormal, NumberAuto-Enter:
                    • Allow editing
                    Validation:
                    • Only during data entry
                    Storage:
                    • Repetitions: 1
                    • Indexing: None
                    • Automatically create indexes as needed
                    • Index Language: German
                        mapTypeNormal, TextAuto-Enter:
                        • Allow editing
                        Validation:
                        • Only during data entry
                        • Value list: MapTypes
                        Storage:
                        • Repetitions: 1
                        • Indexing: None
                        • Automatically create indexes as needed
                        • Index Language: German
                            mapRectXNormal, NumberAuto-Enter:
                            • Allow editing
                            Validation:
                            • Only during data entry
                            Storage:
                            • Repetitions: 1
                            • Indexing: None
                            • Automatically create indexes as needed
                            • Index Language: German
                                mapRectYNormal, NumberAuto-Enter:
                                • Allow editing
                                Validation:
                                • Only during data entry
                                Storage:
                                • Repetitions: 1
                                • Indexing: None
                                • Automatically create indexes as needed
                                • Index Language: German
                                    mapRectWNormal, NumberAuto-Enter:
                                    • Allow editing
                                    Validation:
                                    • Only during data entry
                                    Storage:
                                    • Repetitions: 1
                                    • Indexing: None
                                    • Automatically create indexes as needed
                                    • Index Language: German
                                        mapRectHNormal, NumberAuto-Enter:
                                        • Allow editing
                                        Validation:
                                        • Only during data entry
                                        Storage:
                                        • Repetitions: 1
                                        • Indexing: None
                                        • Automatically create indexes as needed
                                        • Index Language: German
                                            region latitudeNormal, NumberAuto-Enter:
                                            • Allow editing
                                            Validation:
                                            • Only during data entry
                                            Storage:
                                            • Repetitions: 1
                                            • Indexing: None
                                            • Automatically create indexes as needed
                                            • Index Language: German
                                                region longitudeNormal, NumberAuto-Enter:
                                                • Allow editing
                                                Validation:
                                                • Only during data entry
                                                • Strict data type: Numeric
                                                Storage:
                                                • Repetitions: 1
                                                • Indexing: None
                                                • Automatically create indexes as needed
                                                • Index Language: German
                                                    region latitudeMetersNormal, NumberAuto-Enter:
                                                    • Allow editing
                                                    Validation:
                                                    • Only during data entry
                                                    Storage:
                                                    • Repetitions: 1
                                                    • Indexing: None
                                                    • Automatically create indexes as needed
                                                    • Index Language: German
                                                        region longitudeMetersNormal, NumberAuto-Enter:
                                                        • Allow editing
                                                        Validation:
                                                        • Only during data entry
                                                        Storage:
                                                        • Repetitions: 1
                                                        • Indexing: None
                                                        • Automatically create indexes as needed
                                                        • Index Language: German
                                                            region latitudeDeltaNormal, NumberAuto-Enter:
                                                            • Allow editing
                                                            Validation:
                                                            • Only during data entry
                                                            Storage:
                                                            • Repetitions: 1
                                                            • Indexing: None
                                                            • Automatically create indexes as needed
                                                            • Index Language: German
                                                                region longitudeDeltaNormal, NumberAuto-Enter:
                                                                • Allow editing
                                                                Validation:
                                                                • Only during data entry
                                                                Storage:
                                                                • Repetitions: 1
                                                                • Indexing: None
                                                                • Automatically create indexes as needed
                                                                • Index Language: German
                                                                    appearanceNormal, TextAuto-Enter:
                                                                    • Allow editing
                                                                    Validation: Storage:
                                                                    • Repetitions: 1
                                                                    • Indexing: None
                                                                    • Automatically create indexes as needed
                                                                    • Index Language: German
                                                                          ImageNormal, BinaryAuto-Enter:
                                                                          • Allow editing
                                                                          Validation:
                                                                          • Only during data entry
                                                                          Storage:
                                                                          • Repetitions: 1
                                                                              AddressNormal, TextAuto-Enter:
                                                                              • Allow editing
                                                                              Validation:
                                                                              • Only during data entry
                                                                              Storage:
                                                                              • Repetitions: 1
                                                                              • Indexing: None
                                                                              • Automatically create indexes as needed
                                                                              • Index Language: German
                                                                                  CommentNormal, TextAuto-Enter:
                                                                                  • Allow editing
                                                                                  Validation:
                                                                                  • Only during data entry
                                                                                  Storage:
                                                                                  • Repetitions: 1
                                                                                  • Indexing: None
                                                                                  • Automatically create indexes as needed
                                                                                  • Index Language: German

                                                                                        Layout Objects: Snapshots

                                                                                        Regular Fields

                                                                                        Field Name: Snapshots::width
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 52 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 73 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::height
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 75 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 96 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::scale
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 98 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 119 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::showsPointsOfInterest
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 121 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 142 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::showsBuildings
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 144 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 165 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::mapType
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 167 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 188 pt
                                                                                        • Right: 391 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Pop-up Menu
                                                                                        • Display values from: MapTypes
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::mapRectX
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 190 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 211 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::mapRectY
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 213 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 234 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::mapRectW
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 236 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 257 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::mapRectH
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 259 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 280 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::region latitude
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 282 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 303 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::region longitude
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 305 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 326 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::region latitudeMeters
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 328 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 349 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::region longitudeMeters
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 351 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 372 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::region latitudeDelta
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 374 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 395 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::region longitudeDelta
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 397 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 418 pt
                                                                                        • Right: 217 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::appearance
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 420 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 441 pt
                                                                                        • Right: 391 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format: Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::Image
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 52 pt
                                                                                        • Left: 407 pt
                                                                                        • Bottom: 482 pt
                                                                                        • Right: 1016 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        No

                                                                                        Field Name: Snapshots::Address
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 443 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 464 pt
                                                                                        • Right: 391 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Field Name: Snapshots::Comment
                                                                                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                        • Top: 466 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 487 pt
                                                                                        • Right: 391 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Field Format:
                                                                                        • Edit Box
                                                                                        Field Behavior:
                                                                                        • Allow field to be entered: In Find mode, In Browse mode
                                                                                        • Touch keyboard type: Default for Data Type
                                                                                        • Go to next field using: Tab key
                                                                                        Yes

                                                                                        Buttons

                                                                                        Button PropertiesCoordinatesScript/Script Step
                                                                                          Type:
                                                                                        • Text: Render Map
                                                                                        • Top: 498 pt
                                                                                        • Left: 184 pt
                                                                                        • Bottom: 535 pt
                                                                                        • Right: 379 pt
                                                                                        • Anchoring: Left, Top
                                                                                        Perform Script [ “Render” ]

                                                                                        Scripts:


                                                                                        Value Lists

                                                                                        Value List NameSourceValuesOn Layouts
                                                                                        MapTypesCustom
                                                                                        • Standard, Satellite, Hybrid, SatelliteFlyover, HybridFlyover, MutedStandard
                                                                                        AppearancesCustom
                                                                                        • Current, Light, Dark

                                                                                        Script Hierarchy

                                                                                        Render
                                                                                        Make Snapshot
                                                                                        Render 3D

                                                                                        Next Script: [Make Snapshot]
                                                                                        Script NameRender
                                                                                        Run script with full access privilegesOff
                                                                                        Include In MenuNo
                                                                                        Layouts that use this script
                                                                                        Scripts that use this script
                                                                                          Script Definition
                                                                                          Script Steps
                                                                                          • Set Variable [ $json; Value:MBS( "JSON.CreateObjectRef" ) ]
                                                                                          • If [ not IsEmpty ( Snapshots::width ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $json; "width"; Snapshots::width ) ]
                                                                                          • End If
                                                                                          • If [ not IsEmpty ( Snapshots::height ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $json; "height"; Snapshots::height ) ]
                                                                                          • End If
                                                                                          • If [ not IsEmpty ( Snapshots::mapType ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddStringToObject"; $json; "mapType"; Snapshots::mapType ) ]
                                                                                          • End If
                                                                                          • If [ not IsEmpty ( Snapshots::showsBuildings ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $json; "showsBuildings"; Snapshots::showsBuildings ) ]
                                                                                          • End If
                                                                                          • If [ not IsEmpty ( Snapshots::showsPointsOfInterest ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $json; "showsPointsOfInterest"; Snapshots::showsPointsOfInterest ) ]
                                                                                          • End If
                                                                                          • If [ not IsEmpty ( Snapshots::Address ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddStringToObject"; $json; "address"; Snapshots::Address ) ]
                                                                                          • End If
                                                                                          • #Map rectangle or Region?
                                                                                          • If [ not (IsEmpty ( Snapshots::mapRectX ) or IsEmpty ( Snapshots::mapRectY ) or IsEmpty ( Snapshots::mapRectW ) or IsEmpty ( Snapshots::mapRectH )) ]
                                                                                          • Set Variable [ $maprect; Value:MBS( "JSON.CreateObjectRef" ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $maprect; "x"; Snapshots::mapRectX ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $maprect; "y"; Snapshots::mapRectY ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $maprect; "width"; Snapshots::mapRectW ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $maprect; "height"; Snapshots::mapRectH ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddItemToObject"; $json; "mapRect"; $mapRect) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.Release"; $maprect ) ]
                                                                                          • End If
                                                                                          • If [ not (IsEmpty ( Snapshots::region latitude ) or IsEmpty ( Snapshots::region longitude )) ]
                                                                                          • Set Variable [ $region; Value:MBS( "JSON.CreateObjectRef" ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $region; "latitude"; Snapshots::region latitude ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $region; "longitude"; Snapshots::region longitude ) ]
                                                                                          • If [ IsEmpty ( Snapshots::region latitudeMeters ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $region; "latitudeDelta"; Snapshots::region latitudeDelta ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $region; "longitudeDelta"; Snapshots::region longitudeDelta ) ]
                                                                                          • Else
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $region; "latitudeMeters"; Snapshots::region latitudeMeters ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $region; "longitudeMeters"; Snapshots::region longitudeMeters ) ]
                                                                                          • End If
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.AddItemToObject"; $json; "region"; $region) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.Release"; $region ) ]
                                                                                          • End If
                                                                                          • Set Variable [ $options; Value:MBS( "JSON.Format"; $json ) ]
                                                                                          • Set Variable [ $r; Value:MBS( "JSON.Release"; $json ) ]
                                                                                          • Set Variable [ $image; Value:MBS("MapView.Snapshot"; $options; "PNG"; "map.png") ]
                                                                                          • If [ MBS("isError") ]
                                                                                          • Show Custom Dialog [ Title: "Failed to render map"; Message: $image; Default Button: “OK”, Commit: “Yes” ]
                                                                                          • Else
                                                                                          • Set Field [ Snapshots::Image; $image ]
                                                                                          • End If
                                                                                          Fields used in this script
                                                                                          Scripts used in this script
                                                                                            Layouts used in this script
                                                                                              Tables used in this script
                                                                                              Table occurrences used by this script
                                                                                              Custom Functions used by this script
                                                                                                Custom menu set used by this script

                                                                                                  Previous Script: [Render]Next Script: [Render 3D]
                                                                                                  Script NameMake Snapshot
                                                                                                  Run script with full access privilegesOff
                                                                                                  Include In MenuYes
                                                                                                  Layouts that use this script
                                                                                                    Scripts that use this script
                                                                                                      Script Definition
                                                                                                      Script Steps
                                                                                                      • Set Field [ Snapshots::Image; MBS( "MapView.Snapshot"; "{\"width\": 800, \"height\": 600}" ) ]
                                                                                                      Fields used in this script
                                                                                                      Scripts used in this script
                                                                                                        Layouts used in this script
                                                                                                          Tables used in this script
                                                                                                          Table occurrences used by this script
                                                                                                          Custom Functions used by this script
                                                                                                            Custom menu set used by this script

                                                                                                              Previous Script: [Make Snapshot]
                                                                                                              Script NameRender 3D
                                                                                                              Run script with full access privilegesOff
                                                                                                              Include In MenuYes
                                                                                                              Layouts that use this script
                                                                                                                Scripts that use this script
                                                                                                                  Script Definition
                                                                                                                  Script Steps
                                                                                                                  • Set Variable [ $json; Value:MBS( "JSON.CreateObjectRef" ) ]
                                                                                                                  • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $json; "width"; 800 ) ]
                                                                                                                  • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $json; "height"; 600 ) ]
                                                                                                                  • Set Variable [ $r; Value:MBS( "JSON.AddStringToObject"; $json; "mapType"; "HybridFlyover" ) ]
                                                                                                                  • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $json; "showsBuildings"; 1 ) ]
                                                                                                                  • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $json; "showsPointsOfInterest"; 1 ) ]
                                                                                                                  • Set Variable [ $camera; Value:MBS( "JSON.CreateObjectRef" ) ]
                                                                                                                  • #The coordinate point on which the map should be centered.
                                                                                                                  • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $camera; "latitude"; 40,7457172 ) ]
                                                                                                                  • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $camera; "longitude"; -73,9941266 ) ]
                                                                                                                  • #The line-of-sight distance from the camera to the center coordinate of the map.
                                                                                                                  • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $camera; "distance"; 3000 ) ]
                                                                                                                  • #The viewing angle of the camera, measured in degrees.
                                                                                                                  • #A value of 0 results in a camera pointed straight down at the map. Angles greater than 0 result in a camera that is pitched toward the horizon by the specified number of degrees. If the map type is satellite or hybrid, the pitch value is clamped to 0.
                                                                                                                  • #The value in this property may be clamped to a maximum value to maintain map readability. There is no fixed maximum value, though, because the actual maximum value is dependent on the current altitude of the camera.
                                                                                                                  • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $camera; "pitch"; 70 ) ]
                                                                                                                  • #The heading of the camera (measured in degrees) relative to true north.
                                                                                                                  • #The value 0 means that the top edge of the map view corresponds to true north. The value 90 means the top of the map is pointing due east. The value 180 means the top of the map points due south, and so on.
                                                                                                                  • Set Variable [ $r; Value:MBS( "JSON.AddNumberToObject"; $camera; "heading"; 28 ) ]
                                                                                                                  • Set Variable [ $r; Value:MBS( "JSON.AddItemToObject"; $json; "camera"; $camera) ]
                                                                                                                  • Set Variable [ $r; Value:MBS( "JSON.Release"; $camera ) ]
                                                                                                                  • Set Variable [ $options; Value:MBS( "JSON.Format"; $json ) ]
                                                                                                                  • Set Variable [ $r; Value:MBS( "JSON.Release"; $json ) ]
                                                                                                                  • Set Variable [ $image; Value:MBS("MapView.Snapshot"; $options; "PNG"; "map.png") ]
                                                                                                                  • If [ MBS("isError") ]
                                                                                                                  • Show Custom Dialog [ Title: "Failed to render map"; Message: $image; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                  • Else
                                                                                                                  • Set Field [ Snapshots::Image; $image ]
                                                                                                                  • End If
                                                                                                                  Fields used in this script
                                                                                                                  Scripts used in this script
                                                                                                                    Layouts used in this script
                                                                                                                      Tables used in this script
                                                                                                                      Table occurrences used by this script
                                                                                                                      Custom Functions used by this script
                                                                                                                        Custom menu set used by this script

                                                                                                                          Download example: MapKit Snapshots

                                                                                                                          Used functions:




                                                                                                                          Links
                                                                                                                          MBS Xojo Chart Plugins