Gets the id of this layer.
Namespace: MindFusion.Mapping
File: MapLayer.js
SyntaxJavaScript
Copy Code
|
|---|
get id() {} |
String. The id of this layer.
ExampleThe 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(); |
See Also