Maptitude GISDK Help |
Displays a snapshot and sets the map scope to match.
ShowSnapshot(string map_name, string snapshot_name)
Argument |
Contents |
map_name |
Name of the map, or null for the current map |
snapshot_name |
Name of the snapshot to show |
Snapshots allow you to save multiple map images and their associated scopes in a single map file and to switch between them quickly.
// Accept a mouse click from the user & see what state he clicked in...
lyr = "State"
SetLayer(lyr)
rh = LocateNearestRecord(ClickCoord(), 25.0)
state_name = lyr.Name
// Now, display one of the 51 snapshots you have in the file
ShowSnapshot(null, state_name)
Error Type |
Meaning |
NotFound |
The specified map or snapshot does not exist |
Function |
Summary |
Stores a snapshot image of the map as currently displayed |
|
Gets the scope and image file of a snapshot |
|
Gets a list of all snapshots associated with a map |
|
Converts a customized image file into a map snapshot |
|
Removes a snapshot from a map and deletes its image file |
©2025 Caliper Corporation | www.caliper.com |