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