Hi I have the following webpage:
https://netfiles.uiuc.edu/alouchio/shared/GMap4testing.html
I want it so that if you click on Winnebago County (City of Rockford,
north-central IL) you get a pop up window that says no data, but if
you select any other county you will get a link to the county page.
Counties are currently invisible but once you click, it is
highlighted.
I tried putting this code in the addResults function but it is not
recognizing the if line. It goes straight to else when I click on
winnebago. Thank you.
if ("{COUNTY_NAM} == WINNEBAGO"){
var infoWindowOptions = {
content: "No data"
}}
else{
var infoWindowOptions = {
content:"<p><b>{COUNTY_NAM} County</b><br/><a
href='javascript:openCountyWeb(\"{NAME}\");'>View the county webpage</
a><br/><a href='javascript:clearSelection();'>Unselect county</a></p>"
}}
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.