Hi Am There is always a problem when you add code you don't understand. The switch(visibleMarkersCount) code would probably work if no marker returned in the XML But as the XML always returned a marker (actual or no record) this function was not suitable. It is always advisable to try and understand the logic of a code snippet to see if it gives the required result before adding it to your code
I see you have got the zoom fixed Now to query the database with rooms and bathrooms Post here if you want help with query Regards Davie On Nov 8, 7:00 pm, Am <[email protected]> wrote: > Ok, I figured it out. I needed to add > > if (map.getZoom() > 16) {// Change max/min zoom here > //alert(); > map.setZoom(16); > } > > after > map.fitBounds(bounds); -- 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.
