From dcead462fa04befcd9cf6bb78b402b67cba42c47 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 25 Apr 2018 10:34:23 +0200 Subject: JS: fix cluster display when several items are at the same place --- chimere/static/chimere/css/styles.css | 2 ++ chimere/static/chimere/js/jquery.chimere.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/chimere/static/chimere/css/styles.css b/chimere/static/chimere/css/styles.css index fb37249..4673aec 100644 --- a/chimere/static/chimere/css/styles.css +++ b/chimere/static/chimere/css/styles.css @@ -267,6 +267,7 @@ div#panel{ .modal-header .close { text-align: right; + font-family: arial sans-serif; } .modal-header { @@ -1704,6 +1705,7 @@ div.pp_default .pp_expand{ vertical-align:middle; display:inline-block; cursor:pointer; + padding-left: 10px; } #cluster_list li{ diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js index 1578c75..063cfa8 100644 --- a/chimere/static/chimere/js/jquery.chimere.js +++ b/chimere/static/chimere/js/jquery.chimere.js @@ -1264,7 +1264,7 @@ function transformCoordToLonLat(coord) { } // max zoom reached if (zoom_level >= settings[map_id].maxZoom){ - return methods.displayClusterDetail(feature); + return methods.displayClusterDetail(map_id, feature); } // zoom @@ -1300,7 +1300,7 @@ function transformCoordToLonLat(coord) { return feature; }, duration + 200); }, - displayClusterDetail: function(feature){ + displayClusterDetail: function(map_id, feature){ var feats = feature.getProperties()['features']; var content = "