[Mapbender-commits] r8883 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue May 20 07:36:07 PDT 2014
Author: hwbllmnn
Date: 2014-05-20 07:36:06 -0700 (Tue, 20 May 2014)
New Revision: 8883
Modified:
trunk/mapbender/http/plugins/kmlTree.js
Log:
reversed order of kml objects in tree so objects painted on top are first in the list
Modified: trunk/mapbender/http/plugins/kmlTree.js
===================================================================
--- trunk/mapbender/http/plugins/kmlTree.js 2014-05-20 14:21:53 UTC (rev 8882)
+++ trunk/mapbender/http/plugins/kmlTree.js 2014-05-20 14:36:06 UTC (rev 8883)
@@ -76,7 +76,7 @@
$featureList = $("<ul />");
$kmlEntry.append($featureList);
- for(var i = 0;i < obj.data.features.length;i++){
+ for(var i = obj.data.features.length - 1;i >= 0; --i){
var multi = obj.data.features[i].geometry.type.match(/^Multi/i);
var toggle = '';
if(multi) {
More information about the Mapbender_commits
mailing list