This is the page in question…
http://dev.digitalskydesign.com/locations/
Go there, hover over one of the ‘green’ icons on the Google Map. Before you click it just hover over it and you’ll see that a bunch of the code pops up.
I don’t want that code to appear at all but I’m having a hard time figuring out how to handle that in my JavaScript code.
The JavaScript code that handles this map is found here…
http://dev.digitalskydesign.com/wp-content/themes/Teamsters-FCU/locations-iframe.php
There is also a .txt file called ‘branch-locations.txt’ that is basically just addresses and the geocodes for all of the map marker locations.
I’m not a JavaScript guru (just a web designer) so if you could tell me what code to modify / include as well as where to put it, that would be much appreciated.
Thanks guys!
It seems like you have html in your tooltip property.
It seems the code:
var label = points[i].textArray[2];is causing the issue.
If you desire HTML Markup for the tip you will need to add an event to the mouseover event of the marker which displays the toolTip in an element and the adds an event on mouseout to remove the tip element.
The other option you have is to change the label to something without HTML Markup.
An example of adding the Tip with JavaScript code is below:
Some of which was taken from How to call fromLatLngToDivPixel in Google Maps API V3?