On 5 December 2011 23:39,
in...@howlingdollhouse.com<
in...@howlingdollhouse.com> wrote:
>
> Basically, when you type in a query into the search field and press 'submit'
> it returns results (eg if you type in 'Sydney', nodes will appear), I just
> need to know how to make it so the site automatically sends a request when
> it loads, so when the maps starts it displays results for Sydney straight
> away.
>
> Anyone have any ideas?
In your load() function, add a search for Syndey:
searchLocationsNear(new GLatLng(-33.873651,151.206890));
You may have to set the zoom explicitly.
By the way, you're using Version 2 of the API, which (a) is
deprecated; (b) has its own Group at
http://groups.google.com/group/Google-Maps-API/topics