Maptitude GISDK Help

SetMapOptions()

Summary

Sets options for a map window.

 

Syntax

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

 

Notes

Example

// Before running the example, open any map.

SetMapOptions(, {{"Auto Project", "True"}})

 

Error Codes

Error Type

Meaning

Error

One of the options or options values is invalid

 

See Also

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