Hi Am
This code has been added after the last time I looked
visibleMarkersCount++;
}
switch(visibleMarkersCount){
case 0:
// no markers have been created
// set map zoom and center accordingly - or just it leave it
as it
is
map.setZoom(8);
break;
case 1:
// a single marker has been created
// center on the marker but set a zoom level that's not fully
zoomed in
map.setZoom(8);
break;
default:
// two or more markers have been created
// fit the map to the markers
map.fitBounds(bounds);
}
If you comment it out and change my code to
if (markerNodes[0].getAttribute("street")=="No properties found"){
zoom =8;
}
else{
zoom = 12;
}
and later
map.fitBounds(bounds);
//map.setZoom(8);
to
map.fitBounds(zoom);
//map.setZoom(8);
If that doesnt work use alerts to see what is hapening
Regards Davie
On Oct 31, 7:42 pm, Am <[email protected]> wrote:
> sorry, that was Longwood, FL 10mi, not 5mi.
--
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.