Skip to content

GeoProcessor / Command / AddGeoLayerViewGroupToGeoMap


Overview

The AddGeoLayerViewGroupToGeoMap command adds a new GeoLayerViewGroup to an existing GeoMap. A GeoLayerViewGroup contains a list of GeoLayerView and corresponds to a group level in map legend. A GeoLayerView is an internal object that contains a GeoLayer (spatial data layer) and a GeoSymbol (visualization properties for layer).

  • See the CreateGeoMap documentation for guidance on creating maps.
  • See the GeoMapProject documentation for background and GeoMapProject file format specification.

Command Editor

The following dialog is used to edit the command and illustrates the command syntax.

AddGeoLayerViewGroupToGeoMap

AddGeoLayerViewGroupToGeoMap Command Editor (see full-size image)

Command Syntax

The command syntax is as follows:

AddGeoLyerViewGroupToGeoMap(Parameter="Value",...)

Command Parameters

Parameter                           Description Default                  
GeoMapID
required
The ID of the GeoMap. None - must be specified.
GeoLayerViewGroupID
required
The ID of the new GeoLayerViewGroup. None - must be specified.
Name Name of the new GeoLayerViewGroup, used to label the group in the map legend. None - must be specified.
Description Description for the new GeoLayerViewGroup.
Properties Properties for the GeoLayerViewGroup using syntax Property1:Value1,Property2,'Value 2'. Single quotes are used around values when the value contains special characters such as comma and spaces. See the GeoMapProject documentation a list of properties.
InsertPosition The position to insert the GeoLayerViewGroup:
  • Top - top of the list (will be drawn on top).
  • Bottom - bottom of the list (will be drawn on the bottom).
The groups will be rendered in the opposite order of the list. The last group added to the map will be rendered first.
Bottom
InsertBefore The GeoLayerViewGroupID to insert before. The groups will be rendered in the opposite order of the list. The last group added to the map will be rendered first. See InsertPosition default.
InsertAfter The GeoLayerViewGroupID to insert after. The groups will be rendered in the opposite order of the list. The last group added to the map will be rendered first. See InsertPosition default.

Examples

See the automated tests.

Troubleshooting

See Also