User interface widgets

The API for JavaScript comes with many out of the box widgets that you can drop into your application for enhanced productivity. Included are the BasemapGallery, Bookmarks, Print, Geocoder, Gauge, Measurement, Popup, Legend, Scalebar, OverviewMap, Editor, Directions, HistogramTimeSlider, HomeButton, LayerSwipe, LocateButton, TimeSlider, and Analysis widgets. Widgets differ from the buttons and tools you create as part of the Navigation or Draw toolbars we discussed earlier. These widgets are out of the box functionalities that you can drop into your application with just a few lines of code as opposed to the toolbars, which were just helper classes that require a fair amount of HTML, CSS, and JavaScript code.

The BasemapGallery ...

Get Building Web and Mobile ArcGIS Server Applications with JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.