Gets the id of this layer.
Namespace: MindFusion.Mapping
Package: MapLayer.js
JavaScript Copy Code |
---|
Object.defineProperty(MapLayer.prototype, "id", { value: String }); |
String. The id of this layer.
The following code creates a new MapLayer which loads its map tiles from a tile server. It sets its id and uses the attribution property to attribute the service.
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; // create a new instance of the mapView var l = new m.MapLayer(); |