Functions | |
| int | AxMap.AddLayer (object Object, bool Visible) |
| Adds a layer to the map. | |
| object | AxMap.get_GetObject (int LayerHandle) |
| Returns the layer object with the given handle. The object could be a Shapefile, Grid, or Image object. | |
| Image | AxMap.get_Image (int LayerHandle) |
| Gets image object associated with the layer. | |
| int | AxMap.get_LayerHandle (int LayerPosition) |
| Gets the handle of the layer at the given position in the map. Returns -1 if there is no layer at the specified position. | |
| int | AxMap.get_LayerPosition (int LayerHandle) |
| Gets the position of the specified layer in the map. | |
| Shapefile | AxMap.get_Shapefile (int LayerHandle) |
| Gets shapefile object associated with the layer. | |
| bool | AxMap.MoveLayer (int InitialPosition, int TargetPosition) |
| Moves a layer in the map from the initial position to a target position. | |
| bool | AxMap.MoveLayerBottom (int InitialPosition) |
| Moves the specified layer below all other layers. | |
| bool | AxMap.MoveLayerDown (int InitialPosition) |
| Moves the specified layer down one layer in the map. | |
| bool | AxMap.MoveLayerTop (int InitialPosition) |
| Moves the specified layer to the top of all other layers. | |
| bool | AxMap.MoveLayerUp (int InitialPosition) |
| Moves the specified layer up one layer in the map. | |
| void | AxMap.RemoveAllLayers () |
| Removes all layers from the map. | |
| void | AxMap.RemoveLayer (int LayerHandle) |
| Removes the specified layer from the map. | |
| void | AxMap.RemoveLayerWithoutClosing (int LayerHandle) |
| Removes layer from the map without its closing. | |
| void | AxMap.ReSourceLayer (int LayerHandle, string newSrcPath) |
| Changes the data source for the specified layer without its closing. | |
| void | AxMap.set_Image (int LayerHandle, Image __p2) |
| Replaces the image object associated with the layer. | |
| void | AxMap.set_Shapefile (int LayerHandle, Shapefile __p2) |
| Replaces the shapefile object associated with the layer. | |
Properties | |
| int | AxMap.NumLayers [get, set] |
| Gets the number of layers loaded in the map. | |
Here is a list of properties and methods which allow to work with layers of the map. This module is a part of the documentation of AxMap class.
| int AxMap.AddLayer | ( | object | Object, |
| bool | Visible | ||
| ) |
Adds a layer to the map.
| Object | The object (either Image or Shapefile) to add to the map. |
| Visible | Sets whether the layer is visible after being added to the map. |
| object AxMap.get_GetObject | ( | int | LayerHandle | ) |
| Image AxMap.get_Image | ( | int | LayerHandle | ) |
Gets image object associated with the layer.
This method along with AxMap.get_Shapefile() can used to subtitute AxMap.get_GetObject().
| LayerHandle | The handle of the layer. |
| int AxMap.get_LayerHandle | ( | int | LayerPosition | ) |
Gets the handle of the layer at the given position in the map. Returns -1 if there is no layer at the specified position.
| LayerPosition | The position of the layer for which the layer handle is required. |
| int AxMap.get_LayerPosition | ( | int | LayerHandle | ) |
Gets the position of the specified layer in the map.
| LayerHandle | The layer handle of the layer for which the layer position is required. |
| Shapefile AxMap.get_Shapefile | ( | int | LayerHandle | ) |
Gets shapefile object associated with the layer.
This method along with AxMap.get_Image() can be used to subtitute AxMap.get_GetObject().
| LayerHandle | The handle of the layer. |
| bool AxMap.MoveLayer | ( | int | InitialPosition, |
| int | TargetPosition | ||
| ) |
Moves a layer in the map from the initial position to a target position.
| InitialPosition | The initial position of the layer to be moved. |
| TargetPosition | The final position of the layer being moved. |
| bool AxMap.MoveLayerBottom | ( | int | InitialPosition | ) |
Moves the specified layer below all other layers.
| InitialPosition | The position of the layer to move to the bottom |
| bool AxMap.MoveLayerDown | ( | int | InitialPosition | ) |
Moves the specified layer down one layer in the map.
| InitialPosition | The position of the layer to be moved. |
| bool AxMap.MoveLayerTop | ( | int | InitialPosition | ) |
Moves the specified layer to the top of all other layers.
| InitialPosition | The position of the layer to be moved. |
| bool AxMap.MoveLayerUp | ( | int | InitialPosition | ) |
Moves the specified layer up one layer in the map.
| InitialPosition | The initial position of the layer to be moved. |
| void AxMap.RemoveAllLayers | ( | ) |
Removes all layers from the map.
| void AxMap.RemoveLayer | ( | int | LayerHandle | ) |
Removes the specified layer from the map.
| LayerHandle | The handle of the layer to be removed from the map. |
| void AxMap.RemoveLayerWithoutClosing | ( | int | LayerHandle | ) |
Removes layer from the map without its closing.
Shapefile.Close or Image.Close won't be called while removing the layer.
| LayerHandle | The handle of the layer. |
| void AxMap.ReSourceLayer | ( | int | LayerHandle, |
| string | newSrcPath | ||
| ) |
| void AxMap.set_Image | ( | int | LayerHandle, |
| Image | __p2 | ||
| ) |
Replaces the image object associated with the layer.
The old image will not be closed.
| LayerHandle | The handle of the layer. |
| __p2 | The new image object. |
| void AxMap.set_Shapefile | ( | int | LayerHandle, |
| Shapefile | __p2 | ||
| ) |
Replaces the shapefile object associated with the layer.
The old shapefile will not be closed.
| LayerHandle | The handle of the layer. |
| __p2 | The new shapefile object. |
int AxMap.NumLayers [get, set] |
Gets the number of layers loaded in the map.
1.7.6.1