I was able to use the layer wizard to allow users to look at specific states using a search bar. This will be helpful if the user wishes to look at a smaller scale of map by state, instead of the entire country comparatively. This can also be done if you were to use a disease outbreak map, similar to the one I mentioned in the last post. With an outbreak map, the layer wizard could be used to create a search bar that would allow the user to search for specific outbreaks on a map…so the creator could have multiple disease outbreaks on one map.
//
// >0″,
from: “1EcVjHVW1MhqOS_OgeVbldAzZxbKOt_3weRLIMcog”
},
map: map,
styleId: 2,
templateId: 2
});
}
function changeMap_0() {
var whereClause;
var searchString = document.getElementById(‘search-string_0’).value.replace(/’/g, “\\'”);
if (searchString != ‘–Select–‘) {
whereClause = “‘name’ = ‘” + searchString + “‘”;
}
layer_0.setOptions({
query: {
select: “col2>>0”,
from: “1EcVjHVW1MhqOS_OgeVbldAzZxbKOt_3weRLIMcog”,
where: whereClause
}
});
}
google.maps.event.addDomListener(window, ‘load’, initialize);
// ]]>