Gets or sets the active map layer.
Namespace: MindFusion.Mapping
Package: MapView.js
JavaScript Copy Code |
---|
Object.defineProperty(MapView.prototype, "activeLayer", { value: MapLayer }); |
MapLayer. The active map layer.
The following code creates a new MapView using a <DIV> element called "mapview" that we've declared in the HTML code of the page. Then it creates a new MapLayer with map tiles and sets it as the active layer:
JavaScript Copy Code |
---|
// create a new instance of the mapView // create a map layer |