Gets or sets the geographical bounds of the map.
Namespace: MindFusion.Mapping
File: MapView.js
JavaScript Copy Code |
---|
get mapBounds() {} |
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 |