vneekhra

Render Map on a Zip code

Discussion created by vneekhra on Jan 9, 2014
Latest reply on Jan 10, 2014 by JGravois-esristaff
I am using 3.8 Arc GIS JS api, and also new to this map world.

1. I have to render the map based on the zip code. If I enter any US zip code in a text box and hit submit button, then the map should render that location. So is there any method in Map which can help us on this?

2. When setting data in InfoTemplate then I have to show some text based on the condition, but looks like it is not able to store the fields value in javascript variable. Please suggest something on this. Below is the code I am trying.

var valCrewOnSite = ${CrewOnSite};
if( valCrewOnSite == "Yes") {
  crewOnSiteStatus = "<tr><td align=left width=95>Status:</td><td align=right>Restoration in progress</td><tr>";
}

Appreciating any help!

Regards,
Vikas

Outcomes