Amelia:
Pay attention to id and function names. Should be unique.
As a first step try renaming as follows:
<label>Current District Number </label>
<select id="searchString2" onchange="changeMap2(this.value);">
function changeMap2() {
var searchString2 =
document.getElementById('searchString2').value.replace("'", "\\'");
if(searchString2 == "") {
layer.setQuery("SELECT 'geometry' FROM " + tableid);
return;
}
layer.setQuery("SELECT 'geometry' FROM " + tableid + " WHERE
'District' = '" + searchString2 + "'");
}
Once you have that working, try to parametrize changeMap and to have
only one fuction.
Radina
On Aug 15, 10:04 am, Amelia Griza-Padilla <[email protected]>
wrote:n
> Hello,
> I am trying to create two *drop down menus* (would actually like to add a
> third) that searches for records based off my fusion tables. I am able to
> get one of the *drop menus* to work, but once I add the secod *drop down
> menu* neither one works. Can anyone give some guidance to what I am missing
> here?http://www.advocacy.ucla.edu/Maps/Assembly_map.html
>
> Thanks,
> Amelia
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.