Search
MapView.zoomStep Property
See Also
 






Gets or sets the zoom step.

Namespace: MindFusion.Mapping
File: MapView.js

 Syntax

JavaScript  Copy Code

get zoomStep() {}

 Property Value

Number. The zoom step.

 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 and enables its layer and zoom controllers:

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.showLayerController = true;
view.showZoomController = true;
view.zoomStep = 1;

 See Also