Sunday, October 5, 2008

GGoogleBarOptions in GMap2

Hai...
I using GMap2 in my project for locating the places of the sites where the company branches are located using GMarker.I tried to use GGoogleBarOptions for Local Search...I am getting the Search Control but it is not expanding when i click the search glass...i have also tried through coding...
var options = {
onIdleCallback : function() { alert("search control is idle");},
showOnLoad : true
};
map = new GMap2(document.getElementById("map_canvas"), {googleBarOptions: options});
map.setCenter(new GLatLng(42,-104),5);
map.addControl(new GSmallMapControl());
map.enableGoogleBar();
I have used the above coding but still its not working...What can i do...is there anything i have to attach to the project...I need solution for this as soon as possible...pls write back to sundar_srec@india.com...