ASP.NET Pack Programmer's Guide
MapView.mapBounds Property
See Also
 





Gets or sets the geographical bounds of the map.

Namespace: MindFusion.Mapping
Package: MapView.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(MapView.prototype, "mapBounds", { value: LatLongRect });

 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

MapView Members
MapView Class
MindFusion.Mapping Namespace