Creating our own widget

Now that we know the basics of creating custom widgets, that is to say, dijits for our web applications, let's put our knowledge into practice. In this part of the chapter, we will transform the single-page application code we wrote in Chapter 1, Your First Mapping Application into a dijit that can be used with any map. We'll then use that dijit in a map application that can be expanded to include other dijits as well.

Picking up where we left off…

We finally received feedback from the Y2K Society about the census map we created in Chapter 1, Your First Mapping Application. They liked how the map worked, but felt it could use more polish. After a meeting with some group members, here is a list of their feedback:

  • The application ...

Get Mastering ArcGIS Server Development with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.