Hi Am
I see you have used my code to show no properties found
You do not need to send  zoom level in url as i does not send anything
back in the XML
When nothing is found the XML is <marker street="No properties found"
googlemap_lt="40" googlemap_ln="-100" distance="0"/>
If you replace
for (var i = 0; i < markerNodes.length; i++) {


if (markerNodes[0].getAttribute("street")=="No properties found"{
     map.setZoom(4);
}
for (var i = 0; i < markerNodes.length; i++) {

This should do it

Regards Davie


On Oct 31, 6:00 pm, Am <[email protected]> wrote:
> Thank you for the advice. It's really helpful, but I don't know how to set
> the zoom level. I know I just add &zoom=12 to the url, but my code doesn't
> have a url, just variables and functions. How do I set the zoom if I don't
> have a url?

-- 
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.

Reply via email to