Select to view content in your preferred language

County-level map in InfoWindow using JavaScript API

2516
2
08-27-2014 07:45 AM
ChristopherJohnson1
Frequent Contributor

Good morning.  I have the requirement of being able to display a county-level Choropleth map when I click on a State.  Is this possible?  Additionally, does anyone know if it is possible to show the map showing county boundaries in an InfoWindow control when clicking on the counties' parent State?  I am using the JavaScript API.

Any examples would be GREATLY appreciated.

Thanks...Chris

0 Kudos
2 Replies
RiyasDeen
Frequent Contributor

Hi Chris,

Is this what you are after?

Edit fiddle - JSFiddle

ChristopherJohnson1
Frequent Contributor

Hi, Riyas. Thank you for the reply. The solution that you have provided is very similar to the one I am seeking. In your example, the onclick event shows the county-level mapping in the same map. I was looking to show the county-level in the infowindow. I will play with the solution that you have provided and see if I can get it to where I need it to be. Thank you!!!

0 Kudos