Perfect - Thankyou Larry.

On May 10, 9:08 pm, "[email protected]" <[email protected]>
wrote:
> On May 10, 12:51 pm, e <[email protected]> wrote:
>
>
>
>
>
> > I have coded up the google store 
> > locatorhttp://www.mrsc.co.uk/search_map.html
> > - my final requirement is to have some sort of default search on load
> > or pre loading of the mysql query so that on first loading the page,
> > all the markers are visible.
>
> > I've been playing around with
>
> >      var searchUrl = 'phpsqlsearch_genxml.php?lat=' + center.lat() +
> > '&lng=' + center.lng() + '&radius=' + radius;
> >      GDownloadUrl(searchUrl, function(data) {
>
> > but I can't seem to come up with a default search without breaking the
> > search functionality. This seems like it should be pretty simple, I
> > have looked at example code such 
> > ashttp://econym.org.uk/gmap/example_map3.htm
> > but I can't seem to figure out how to meld the two together. Anyone
> > got some pointers?
>
> Why don't you just add this to your load function (just after setting
> the map center):
>         searchLocationsNear(map.getCenter());
>
> It will default to the radius that your select box defaults to...
>
>   -- Larry
>
>
>
>
>
> > TIA.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to