diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2011-06-14 17:19:32 +0400 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2011-06-14 17:19:32 +0400 |
commit | 9f4c4c91cfeec520891766ef3204c61ecced4bfa (patch) | |
tree | 1d58dea683ba0c38e3b2e559aadd4996ecaae659 /js/tbl_gis_visualization.js | |
parent | 28a9b971bf6ed7971207857e2a28a487751f2d00 (diff) |
Labels for visualizations with OpenStreetMaps. New icon for the 'Visualize GIS data' link.
Diffstat (limited to 'js/tbl_gis_visualization.js')
-rw-r--r-- | js/tbl_gis_visualization.js | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/js/tbl_gis_visualization.js b/js/tbl_gis_visualization.js index 97339d23eb..b6a33656f3 100644 --- a/js/tbl_gis_visualization.js +++ b/js/tbl_gis_visualization.js @@ -187,16 +187,18 @@ $(document).ready(function() { + '.geometrycollection').live('mousemove', function(event) { contents = $(this).attr('name'); $("#tooltip").remove(); - $('<div id="tooltip">' + contents + '</div>').css({ - position : 'absolute', - display : 'none', - top : event.pageY + 10, - left : event.pageX + 10, - border : '1px solid #fdd', - padding : '2px', - 'background-color' : '#fee', - opacity : 0.80 - }).appendTo("body").fadeIn(200); + if (contents != '') { + $('<div id="tooltip">' + contents + '</div>').css({ + position : 'absolute', + display : 'none', + top : event.pageY + 10, + left : event.pageX + 10, + border : '1px solid #fdd', + padding : '2px', + 'background-color' : '#fee', + opacity : 0.80 + }).appendTo("body").fadeIn(200); + } }); /** |