Description | Example | Return Message | Group

ImportMapStyles

Import map styles.

Syntax

ImportMapStyles <ScenarioPath> {Options}

Related Commands

Description

This will load the specified map style from the specified directory. If no style name is specified, all existing map styles in the specified directory are imported. If a map style is specified but no directory is specified, the default directory (user's Config/MapStyles directory) is used. The 'Overwrite' option can be specified to allow the loaded map style to be used in place of an already loaded map style with the same name.

{Options} Description
Style "<StyleName>" Specify the styleName to be imported.
Directory "<DirectoryPath>" Specify the directory where the imported map styles will be found.
Overwrite {Yes | No} Specify whether or not to allow the loaded map style to be used in place of an already loaded map style with the same name. If not entered then map styles will be overwritten.

Example

To Import all map styles from the directory c:\MyMapDir, overwriting any existing styles:

ImportMapStyles * Directory "c:\MyMapDir"

To Import the map style "Basic_Map_Bckgrnd" from the default directory, and overwrite any existing style of the same name:

ImportMapStyles * Style "Basic_Map_Bckgrnd" Overwrite Yes

ReturnMessage

If activated, Connect returns an acknowledgement message.

Group Membership

This command belongs to the following group(s):

2D Graphics Window

Scenarios

Version

6.1

STK Programming Interface 11.0.1