Gets or sets a value indicating whether drag panning is enabled.
Namespace: MindFusion.Mapping
File: MapView.js
SyntaxJavaScript
Copy Code
|
|---|
get allowPan() {} |
Boolean. True if drag panning is enabled, otherwise false.
ExampleThe 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 panning for this view:
JavaScript
Copy Code
|
|---|
// create a new instance of the mapView // create a map layer |
See Also