diff options
-rw-r--r-- | chimere/static/chimere/js/jquery.chimere.js | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js index 62899ec..028f5c2 100644 --- a/chimere/static/chimere/js/jquery.chimere.js +++ b/chimere/static/chimere/js/jquery.chimere.js @@ -599,18 +599,17 @@ function transformCoordToLonLat(coord) { {top: y + 'px', left: x + 'px'} ); $("#" + map_id + "_hover").show(); - } else { - if (settings[map_id].mouse_hover_opened != pk){ - settings[map_id].mouse_hover_opened = pk; - if ($('.popover-content').is(':visible')){ - $(settings[map_id].popup_item).popover('destroy'); - } - if (feature.get('name')){ - methods.openPopup( - map_id, feature, null, null, - feature.getGeometry().getCoordinates(), - true); - } + } + if (settings[map_id].mouse_hover_opened != pk){ + settings[map_id].mouse_hover_opened = pk; + if ($('.popover-content').is(':visible')){ + $(settings[map_id].popup_item).popover('destroy'); + } + if (feature.get('name')){ + methods.openPopup( + map_id, feature, null, null, + feature.getGeometry().getCoordinates(), + true); } } @@ -1367,7 +1366,9 @@ function transformCoordToLonLat(coord) { }, openPopup: function(map_id, feature, offset_x, offset_y, alt_coordinates, no_detail){ - settings[map_id].current_feature = feature; + if (!no_detail){ + settings[map_id].current_feature = feature; + } if (!offset_x){ offset_x = feature.get('popup_offset_x'); if (!offset_x) offset_x = 0; |