summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chimere/static/main_map.js5
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'){