diff options
author | Markus Koch <markus@notsyncing.net> | 2020-04-19 09:12:37 +0200 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2020-04-19 09:12:37 +0200 |
commit | 354ca8d1d7f92010b9d5f931c8effe09d858e6d5 (patch) | |
tree | 721816076f7715470e3e6c748f899d42c6ce76a4 /htdocs | |
parent | 0859324a4664e527cc1a5047269379a5d65e93e8 (diff) | |
download | lifomapserver-354ca8d1d7f92010b9d5f931c8effe09d858e6d5.tar.gz lifomapserver-354ca8d1d7f92010b9d5f931c8effe09d858e6d5.tar.bz2 lifomapserver-354ca8d1d7f92010b9d5f931c8effe09d858e6d5.zip |
Center map on marker when clicking it
Diffstat (limited to 'htdocs')
-rw-r--r-- | htdocs/mapscript.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/htdocs/mapscript.js b/htdocs/mapscript.js index 877846d..4bdec93 100644 --- a/htdocs/mapscript.js +++ b/htdocs/mapscript.js @@ -120,7 +120,7 @@ function load_geojson(name, url, iconname, iconcolor, active=1, style={}) { permanent: true, direction: "center", className: "city-names" - }).openTooltip(); + }).openTooltip().on('click', jump_to_marker); }; pointToLayer = function(feature, latlng) { label = String(feature.properties.name) |