Click or drag to resize

MapLayers Property

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets or sets an array of map layer names. These layers are rendered in accordance with the LayersRenderMode property.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public string[] Layers { get; set; }

Property Value

Type: String
Remarks

The Layers property is only supported when using a remote map. Each layer results in a separate GeoStream request, with the results composited together.

Layers can be specified in addition to SatelliteLayerName when LayersRenderMode is not RenderMode.PreMap, in which case the layers will be drawn on top of the satellite layer.

Examples
In this example, we add a layer to our map.
C#
// Create a Map object
Telogis.GeoBase.Map myMap = new Telogis.GeoBase.Map();

// Set the map to use a map layer
myMap.Layers = new[] { "MyLayerName" };

// Display the name of the map layer
Console.WriteLine("The map's currently used map layer is {0}", myMap.Layers[0]);
See Also