Hi , i am using gmaps-api-v3-googlebar and how i can execute a search
automaticaly when page is loaded.
thanks
google.load('maps','3',{other_params:'sensor=false'}); // load the
maps api
google.load('search','1',{nooldnames:1}); // load the search api
(need this for the search form)
function init(){
var mapOptions={ // set up some map options
center : new google.maps.LatLng(44, -93),
mapTypeId : google.maps.MapTypeId.ROADMAP,
zoom : 9
},
gbarOptions={
// we're going with the defaults
};
var map=new
google.maps.Map(document.getElementById('map_canvas'),mapOptions);
var gbar = new window.jeremy.jGoogleBar(map,gbarOptions);
map.controls[google.maps.ControlPosition.BOTTOM_LEFT].push(gbar.container);
}
google.setOnLoadCallback(init);
On 9 set, 12:51, jrgeerdes <[email protected]> wrote:
> If you're wanting to use something like the Google Search API, you
> could try the jGoogleBar:
>
> http://code.google.com/p/gmaps-api-v3-googlebar/
>
> Just set up the map, add the control, and then call
> control.execute('hotel'), where control is a reference to the control.
>
> jg
--
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.