Gets or sets the geographical bounds of the map.
Namespace: MindFusion.Mapping
Package: MapView.js
JavaScript Copy Code |
---|
Object.defineProperty(MapView.prototype, "mapBounds", { value: LatLongRect }); |
LatLongRect. A LatLongRect instance, representing the geographical bounds of the map.
The following code creates a new MapView from an HTML <div> element with an id "mapView" and sets its mapBounds property to a rectangle that represents the area between the geographical coordinates of London and Paris.
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; // create a new instance of the mapView |