Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fixed coord-button hover display #WV-1792

Benjamina50a72c72a35
diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.js
index c54bb0ea0..963dec9bf 100644
--- a/web/js/map/wv.map.ui.js
+++ b/web/js/map/wv.map.ui.js
@@ -1018,7 +1018,10 @@ wv.map.ui = wv.map.ui || function(models, config, Rotation, DataRunner) {
var coords;
var pixelValue;
var pixels;
- if($(e.relatedTarget).hasClass('map-coord')) return;
+ if($(e.relatedTarget).hasClass('map-coord') ||
+ $(e.relatedTarget).hasClass('coord-btn')) {
+ return;
+ }
pixels = [e.pageX,e.pageY];
coords = map.getCoordinateFromPixel(pixels);
@@ -1042,11 +1045,17 @@ wv.map.ui = wv.map.ui || function(models, config, Rotation, DataRunner) {
}
$(map.getViewport())
.mouseover(function(e){
- if($(e.relatedTarget).hasClass('map-coord')) return;
+ if($(e.relatedTarget).hasClass('map-coord') ||
+ $(e.relatedTarget).hasClass('coord-btn')) {
+ return;
+ }
$('#' + mapId).show();
})
.mouseout(function(e) {
- if($(e.relatedTarget).hasClass('map-coord')) return;
+ if($(e.relatedTarget).hasClass('map-coord') ||
+ $(e.relatedTarget).hasClass('coord-btn')) {
+ return;
+ }
$('#' + mapId).hide();
hoverThrottle.cancel();
//dataRunner.clearAll();