diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-10-31 02:54:37 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-10-31 02:54:37 +0100 |
| commit | be0cc0d87e963785ca73968410af680a74077d13 (patch) | |
| tree | 3e065fcb1fcd921d5437cb995297b221bac5db63 | |
| parent | 840ba25d00adfc92cea6fdb5663d420678ad5190 (diff) | |
| download | Chimère - projet Saclay-be0cc0d87e963785ca73968410af680a74077d13.tar.bz2 Chimère - projet Saclay-be0cc0d87e963785ca73968410af680a74077d13.zip | |
Add cluster list and enable clustering option
| -rw-r--r-- | templates/chimere/blocks/map.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/chimere/blocks/map.html b/templates/chimere/blocks/map.html index e24fc83..958954e 100644 --- a/templates/chimere/blocks/map.html +++ b/templates/chimere/blocks/map.html @@ -2,7 +2,13 @@ <div id='{{map_id}}'></div> <script type="text/javascript"> <!-- - $("#{{map_id}}").show(); +$("#{{map_id}}").show(); +$(function(){ + $('#cluster_list').dialog({'autoOpen':false, + 'resizable':false, + 'width':340, + 'dialogClass':'no-titlebar'}); +}); // --> </script> <div id="waiting"> @@ -44,6 +50,7 @@ $(function() {$('#panel').hide()});{% endif %} var chimere_init_options = {}; {% if MOBILE %}chimere_init_options["mobile"] = true;{% endif %} + {% if enable_clustering %}chimere_init_options["enable_clustering"] = true;{% endif %} chimere_init_options["routing_panel_open"] = routing_panel_open; chimere_init_options["category_accordion"] = false; chimere_init_options["cluster_icon"] = new OpenLayers.Icon( @@ -163,3 +170,4 @@ // --> </script> <div id='marker_hover'><div id='marker_hover_content'></div></div> +<div id='cluster_list'></div> |
