Search
MapView.mapBounds Property
See Also
 






Gets or sets the geographical bounds of the map.

Namespace: MindFusion.Mapping
File: MapView.js

 Syntax

JavaScript  Copy Code

get mapBounds() {}

 Property Value

LatLongRect. A LatLongRect instance, representing the geographical bounds of the map.

 Example

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
var view = new m.MapView(document.getElementById("mapView"));
view.theme = "light";
view.mapBounds = new m.LatLongRect(51.507351, -0.127758, 48.856613, 2.352222);

 See Also