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





Gets or sets the minimum zoom of the map.

Namespace: MindFusion.Mapping
Package: MapView.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(MapView.prototype, "minZoomLevel", { value: Number });

 Property Value

Number. The minimum zoom level.

 Example

The following code creates a new MapView using a <DIV> element called "mapview" that we've declared in the HTML code of the page. Then it sets the minimum and maximum zoom levels:

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.maxZoomLevel = 20;
view.minZoomLevel = 2;

 See Also

MapView Members
MapView Class
MindFusion.Mapping Namespace