diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-04-25 10:34:23 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-04-25 10:34:23 +0200 |
commit | dcead462fa04befcd9cf6bb78b402b67cba42c47 (patch) | |
tree | 8d9a2972f2b2dd21f40b835900a26af7d5403ccc | |
parent | f786504bc1b32599977e4c1de9bd9c1e7f608e7f (diff) | |
download | Chimère-dcead462fa04befcd9cf6bb78b402b67cba42c47.tar.bz2 Chimère-dcead462fa04befcd9cf6bb78b402b67cba42c47.zip |
JS: fix cluster display when several items are at the same place
-rw-r--r-- | chimere/static/chimere/css/styles.css | 2 | ||||
-rw-r--r-- | 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 = "<div class='dialog-content'><ul>"; for (idx in feats){ |