diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-10-07 15:59:14 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-10-07 15:59:14 +0200 |
commit | 50ab0222f0a41473e4cedc27d8cf46bd5216794a (patch) | |
tree | 5639aaf97e257035884903afe20587b8fb61ed40 | |
parent | cecac962b4e547c5ea15415c4a04529110d2beb1 (diff) | |
download | Chimère-50ab0222f0a41473e4cedc27d8cf46bd5216794a.tar.bz2 Chimère-50ab0222f0a41473e4cedc27d8cf46bd5216794a.zip |
JS: small fix
-rw-r--r-- | chimere/static/main_map.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chimere/static/main_map.js b/chimere/static/main_map.js index 42c9b28..eabb1c7 100644 --- a/chimere/static/main_map.js +++ b/chimere/static/main_map.js @@ -1,4 +1,4 @@ -/* Copyright (C) 2008-2011 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> +/* Copyright (C) 2008-2012 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -166,6 +166,9 @@ function updateCheckedCategories(){ /* load marker and route layer from a JSON feature string */ function loadLayersFromJSON(layer_markers, layer_vectors, geo_objects){ + if (!geo_objects){ + return + } for (var i = 0; i < geo_objects.features.length; i++) { var feature = geo_objects.features[i]; if (feature.geometry.type == 'Point'){ |