- Building Web and Mobile ArcGIS Server Applications with JavaScript(Second Edition)
- Eric Pimpler Mark Lewin
- 194字
- 2021-07-02 15:49:01
Map Navigation with the mouse and keyboard
Users can also control map navigation with the mouse and/or keyboard devices. By default, users can do the following:
- Drag the mouse to pan
- Mouse scroll forward to zoom in
- Mouse scroll backward to zoom out
- SHIFT + Drag the mouse to zoom in + drag the mouse to zoom in
- Shift + Ctrl + drag the mouse to zoom out
- Shift + click to recenter
- Double Click to zenter and zoom in
- Shift + double-click to center and zoom out
- Use arrow keys to pan
- Use + key to zoom in a level
- Use - key to zoom out a level
These options can be disabled using one of several Map methods. For example, to disable scroll wheel zooming you would use the Map.disableScrollWheelZoom() method. These navigation features can also be removed after the map has been loaded. This can be very useful. For example, let's say that you have a custom tool that requires the user to double click on the map to select a feature. You'll want to call Map.disableDoubleClickZoom() while your tool is being used, and Map.enableDoubleClickZoom() when your user has finished with it.
推薦閱讀
- 數據庫系統原理及MySQL應用教程(第2版)
- Learn Blockchain Programming with JavaScript
- LabVIEW入門與實戰開發100例
- 微服務設計原理與架構
- PhoneGap Mobile Application Development Cookbook
- C#程序設計
- Multithreading in C# 5.0 Cookbook
- Unity 3D/2D移動開發實戰教程
- Clojure for Machine Learning
- Python開發基礎
- PHP+MySQL動態網站開發從入門到精通(視頻教學版)
- 超簡單:用Python讓Excel飛起來(實戰150例)
- SAP Web Dynpro for ABAP開發技術詳解:基礎應用
- Python趣味創意編程
- 自己動手構建編程語言:如何設計編譯器、解釋器和DSL