Popup content in side panel

2904
1
06-05-2013 02:01 PM
akashmagoon
New Contributor
How can I make a world map similar to

http://developers.arcgis.com/en/javascript/jssamples/popup_sidepanel.html

I want it so that what ever country you click on, there is a side panel info window that shows detail.

How can I set this up, and how can I make it so that each country has a different side panel when clicked?
0 Kudos
1 Reply
JonathanUihlein
Esri Regular Contributor
I did something similar earlier this week with a few restaurants in the Redlands area (instead of countries, for example).
It was fairly easy to set up as long as you have a complete data set to work with.

First, you need to create an ArcGIS Online Web Map with the data you desire (http://jsapi.maps.arcgis.com/home/index.html). My data was in CSV format but there are better options for larger data sets.

After that, you can simply replace the webmap-id used by the sample with your own map's webmap-ID.

It should show all of the information from your dataset regarding a specific country in the sidebar.

As for custom content in the left pane, you could create a template for the side panel to change what information is displayed based on a specific property of a particular country within your dataset.

If I missed anything, I apologize. Good luck and I hope this helps.
0 Kudos