From 50ab0222f0a41473e4cedc27d8cf46bd5216794a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 7 Oct 2012 15:59:14 +0200 Subject: JS: small fix --- chimere/static/main_map.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 +/* Copyright (C) 2008-2012 Étienne Loks 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'){ -- cgit v1.2.3