[Mapbender-commits] r8909 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue May 27 00:28:38 PDT 2014
Author: hwbllmnn
Date: 2014-05-27 00:28:38 -0700 (Tue, 27 May 2014)
New Revision: 8909
Modified:
trunk/mapbender/http/javascripts/mod_loadwmc.js
Log:
fixed loading of wmc with geojson data: properly remove old data
Modified: trunk/mapbender/http/javascripts/mod_loadwmc.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_loadwmc.js 2014-05-26 12:37:48 UTC (rev 8908)
+++ trunk/mapbender/http/javascripts/mod_loadwmc.js 2014-05-27 07:28:38 UTC (rev 8909)
@@ -490,7 +490,12 @@
var kml = $('#mapframe1').data('kml');
if(kml) {
try {
+ $.each(kml.kmlOrder, function(_, v) {
+ $('li[title="' + v + '"]').unbind().find('*').unbind();
+ $('li[title="' + v + '"]').remove();
+ });
kml._kmls = JSON.parse(restoredWmcExtensionData.KMLS);
+ kml.cache = {};
kml.kmlOrder = JSON.parse(restoredWmcExtensionData.KMLORDER);
kml.render();
for(var k in kml._kmls) {
More information about the Mapbender_commits
mailing list