Tag ArcGIS Maps SDK for JavaScript

Custom Basemap Toggle with ArcGIS JavaScript API 4 View Models

I am super excited about the ArcGIS Maps SDK for JavaScript 4.0 beta. One of the exciting things is developer friendly widgets which allows us to write our own presentation layer, and still use the logic of the core widget (the “View Model”). For example, the View Model for the Basemap Toggle Widget allows you to call toggle() and get the current/secondary basemaps, all from your own module that implements the view.

This Week in Esri GitHub

Esri has opened up a bunch of repositories on GitHub this past week.

ArcGIS JavaScript Draggable InfoWindow

Note: Draggable popup code for the latest version of the ArcGIS Maps SDK for JavaScript is here In the ArcGIS API for JavaSctipt v3, the InfoWindow on a web map is the primary method of of showing information on selected items in the map. The map control automatically does its best to show the InfoWindow within the the viewport of the map, but on some maps and in certain situations, it may be appropriate to allow the user to drag the InfoWindow away from the automatically placed location.