Please see attached image:
The html (I just broke it up in 3 lines so you wouldn't have to scroll to the right):
<!-- MapServer Template -->
<area shape="circle" coords="[shpxy precision=0 proj=image yf=",7" xf=","]"
title="[name]" alt="[name]" onmouseover='displayCityInfo("[name]");
displayToolTip();' onmouseout="hideCityInfo()">
The jquery:
function displayToolTip() {
$( document ).tooltip({track: true, items: '[title]', content: getContent});
}
function getContent() {
var element = $(this);
if (element.is('[tooltip]')) {
var src = element.attr('tooltip');
return '<img src="' + src + '" width="100">';
}
if (element.is('[title]')) {
return element.attr('title');
}
}
The issue:
I am not sure why there is basically "double hovers". If I just move my mouse around the map quickly, the names get stacked on top of each other in the top left corner.
1) I do not want any tool tips in the top left corner.
2) I just want to hover over a golden point, and the tool tip appears. As you can see in the image, this is happening...somewhat.
3) Don't mind the teal-colored rectangle.
The goal:
Remove the tool tips in the top left corner, and just have tool tips when you hover over a golden point.
Any input on the matter is appreciated. I was looking through the documentation but I am not sure what I'm doing wrong.