On Mar 12, 9: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.

Neither can I. Using an option of {title:} works.

> 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.

Please provide a link. I can't get
  map.addOverlay(new GMarker(point, {title: "label"}));
to go wrong.

Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to