| Maptitude GISDK Help |
Sets options for a map window.
SetMapOptions(string map_name, array options)
| Argument | Contents |
|---|---|
| map_name | The name of the map, or null for the current map |
| Option | Type | Contents |
|---|---|---|
| Auto Project | Boolean | If "True" the map projection is chosen automatically based on the current scope and scale; if "False" projections are not automatically changed |
| Menu | String | The menu that is associated with the map window |
The attached menu is automatically displayed whenever the map is activated.
// Before running the example, open any map.
SetMapOptions(, {{"Auto Project", "True"}})
| Error Type | Meaning |
|---|---|
| Error | One of the options or options values is invalid |
| Function | Summary |
|---|---|
| OpenMap() | Opens a map file and display it in a map window |
| GetMapOptions() | Gets the value of options for a map window |
| ©2025 Caliper Corporation | www.caliper.com |