It's all guesswork without a link to your map. Therefore it's always the first suggestion to read the posting guide lines
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/39c2fd0cf99e14b2# However, my guess would be that you're using v2 of the API, try using v2.x, because setUIToDefault() was introduced in v2.146. On Mar 12, 10:45 am, Samuel1774 <[email protected]> wrote: > Hi, > > I am having trouble getting the tooltip function to work. I have > read > several threads but can't quite see my mistake. > > All I want is the marker on my map to display the tooltip upon loading > with whatever text I give it. I have been successful at getting the > proper map to load and the marker to show in the proper spot. There's > just no tooltip showing (and nothing happens if you click on the > marker). > > Here is my code: > > <script type="text/javascript"> > function initialize() { > if (GBrowserIsCompatible()) { > var map = new GMap2(document.getElementById("map_canvas")); > var geocoder = new GClientGeocoder(); > geocoder.getLatLng("address, $city, $state, $zip", function(point){ > map.setCenter(point, 15); > map.addOverlay(new GMarker(point, {title: "label"})); > map.setUIToDefault(); });} > } > > </script> > > This happens inside a .php document; the location (address, city, > state, zip) are filled in dynamically upon loading the page. > > Any help would be greatly appreciated. Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
