Map navigation widgets and toolbars
The simplest way to provide map navigation control to your application is through the addition of various widgets and toolbars. By default, when you create a new map and add layers, a zoom slider is included with the map. This slider allows the user to zoom in and out of the map by clicking the plus or minus buttons respectively. The zoom slider is illustrated in the following screenshot. You don't have to write any code for the zoom slider to appear on your map. It is present by default:

However, you can remove the slider if your application doesn't need it by setting the slider option to false within the map options object you pass into the Map constructor:
{ slider: false }
By default, the ArcGIS API for JavaScript displays the small version of the slider. If you want to give your users more fine-grained control over the map's zoom level, you can use the large slider instead:
{ sliderStyle: "large" }

You can also add pan buttons that will pan the map in the direction that the arrow points when clicked. By default pan buttons will not appear on the map. You must specifically set the nav option to true when creating your Map object:
{ nav: true }
The result of this is the addition of little directional buttons in the corners of the map:

The ArcGIS API for JavaScript also gives you the ability to add several types of toolbars to your application, including a navigation toolbar that contains buttons for zooming in and out, panning, full extent, next extent and previous extent. The topic of toolbar creation is covered in detail in a later chapter, so we'll save that discussion for then:

- Cocos2d Cross-Platform Game Development Cookbook(Second Edition)
- 玩轉(zhuǎn)Scratch少兒趣味編程
- C#高級編程(第10版) C# 6 & .NET Core 1.0 (.NET開發(fā)經(jīng)典名著)
- C程序設(shè)計簡明教程(第二版)
- Spring 5企業(yè)級開發(fā)實戰(zhàn)
- Vue.js前端開發(fā)基礎(chǔ)與項目實戰(zhàn)
- 認(rèn)識編程:以Python語言講透編程的本質(zhì)
- HTML5游戲開發(fā)案例教程
- 游戲程序設(shè)計教程
- Java系統(tǒng)化項目開發(fā)教程
- Go語言精進(jìn)之路:從新手到高手的編程思想、方法和技巧(1)
- Python極簡講義:一本書入門數(shù)據(jù)分析與機(jī)器學(xué)習(xí)
- C語言開發(fā)基礎(chǔ)教程(Dev-C++)(第2版)
- 深度學(xué)習(xí)程序設(shè)計實戰(zhàn)
- 軟件測試技術(shù)