(TMap.GetLayers Method)
Returns the layer array of all the layers present on the map i.e. all the added layers of a map.
public GetLayers():Array
<div id="mapContainer" style="width: 640px; height: 400px;"></div> <script type="text/javascript"> var map0 = new TMap(mapContainer, 25.7590256665386, -80.3738769902151, 15, mapLoaded, 1, true, "", "hybrid"); function mapLoaded() { map0.SetLegendPanelVisibility(true); var layer0=map0.AddLayer(); var layer1=map0.AddLayer(); var larArray=map0.GetLayers() } </script>