Try adjusting this line of code to something more specific to where you want the map to default to....
center: new google.maps.LatLng(40, -100) change the 40 ,-100 k On Fri, Apr 23, 2010 at 2:49 PM, [email protected] < [email protected]> wrote: > > I followed this tutorial bellow and I was really happy with the > results. > > http://code.google.com/apis/maps/articles/phpsqlsearch_v3.html > > Here is my Map: > > http://www.allgreenrecycling.com/map/dropoff.php > > I have come across a slight issue. I don't know why, but if a zip code > is searched in which we do not have any locations near by, the map > ends up in the middle of the ocean. Ideally I would like our map to > create a temporary marker in respect to their search. If not a marker > at the least the map can focus on that area. > > For example try 92626 (Costa Mesa, CA) > > then try 93101 (Santa Barbara, CA) > > Thank You! > > -- > 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]<google-maps-js-api-v3%[email protected]> . > For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. > -- 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.
