Initializes a new instance of the MapLayer class.
Namespace: MindFusion.Mapping
Package: MapLayer.js
JavaScript Copy Code |
---|
function MapLayer ([id]) |
String. The id of this layer.
The following code creates a new MapLayer which loads its map tiles from a tile server. It 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(); |