Using the Google Bar, you'll be stuck. The Google Bar is implemented inside the Maps API, and there's no way to reliably get a handle on it. What you can do, though, is use the standalone google.maps.LocalSearch control, which is actually the same thing. You just get control that way. Google it. You'll find the docs.
Jeremy R. Geerdes Effective website design & development Des Moines, IA For more information or a project quote: http://jgeerdes.home.mchsi.com http://jgeerdes.blogspot.com http://jgeerdes.wordpress.com [email protected] Unless otherwise noted, any price quotes contained within this communication are given in US dollars. If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com ! On May 12, 2009, at 12:05 PM, Dennis G wrote: > > Hi Jeremy. Thanks for the reply. Here is some of the code: > > function initialize() { > if (GBrowserIsCompatible()) { > > var mapOptions = { > googleBarOptions: { > style: "new", > searchFormHint: "Ex: Gas Stations, Banks", > adsOptions: { > client: "partner-google-maps-api", > channel: "41301183", > adsafe: "high", > language: "en" > } > } > } > > map = new GMap2(document.getElementById("map_canvas"), > mapOptions); > map.setCenter(new GLatLng(39.965488, -75.171579), 16); > map.setUIToDefault(); > map.enableGoogleBar(); > > } > } > > Let me know thoughts! > > Dennis > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" 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-AJAX-Search-API?hl=en -~----------~----~----~----~------~----~------~--~---
