[Mapbender-commits] r8950 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jun 30 05:15:03 PDT 2014
Author: hwbllmnn
Date: 2014-06-30 05:15:02 -0700 (Mon, 30 Jun 2014)
New Revision: 8950
Modified:
trunk/mapbender/http/javascripts/mod_savewmc.js
Log:
fixed check for kml module wrt size calculation
Modified: trunk/mapbender/http/javascripts/mod_savewmc.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_savewmc.js 2014-06-30 11:08:02 UTC (rev 8949)
+++ trunk/mapbender/http/javascripts/mod_savewmc.js 2014-06-30 12:15:02 UTC (rev 8950)
@@ -171,7 +171,7 @@
mb_mapObj[0].kmls = kml._kmls;
mb_mapObj[0].kmlOrder = kml.kmlOrder;
var json = JSON.stringify(kml._kmls);
- if(Mapbender.options && Mapbender.options.MAX_WMC_LOCAL_DATA_SIZE && json.length > Mapbender.options.MAX_WMC_LOCAL_DATA_SIZE) {
+ if(Mapbender.options && Mapbender.options.MAX_WMC_LOCAL_DATA_SIZE && json && json.length > Mapbender.options.MAX_WMC_LOCAL_DATA_SIZE) {
alert('The maximum local data size is ' + Math.round(Mapbender.options.MAX_WMC_LOCAL_DATA_SIZE / 1024) + 'kb, your data is ' + Math.round(json.length / 1024) + 'kb, data will NOT be saved.');
mb_mapObj[0].kmls = null;
mb_mapObj[0].kmlOrder = null;
More information about the Mapbender_commits
mailing list