Just wanted to follow up that I figured this out using an if else
statement:
function searchLocations() {
var address = document.getElementById('addressInput').value;
var sidebar = document.getElementById('sidebar');
sidebar.innerHTML = '';
if (address >= 66000 && address <= 69999) {
sidebar.innerHTML = '<b>Acme Inc</b><br/>101 NW Main St<br/
>Anytown, NE 68022<br/>(555) 444-3333';
map.setCenter(new GLatLng(40, -100), 4);
}
else {
else basically runs the rest of the script.
--
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.