[Mapbender-commits] r8838 - in trunk/mapbender/http: css plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon May 12 01:47:47 PDT 2014
Author: hwbllmnn
Date: 2014-05-12 01:47:46 -0700 (Mon, 12 May 2014)
New Revision: 8838
Modified:
trunk/mapbender/http/css/kmltree.css
trunk/mapbender/http/plugins/kmlTree.js
Log:
make selection in kml tree visible
Modified: trunk/mapbender/http/css/kmltree.css
===================================================================
--- trunk/mapbender/http/css/kmltree.css 2014-05-12 08:42:40 UTC (rev 8837)
+++ trunk/mapbender/http/css/kmltree.css 2014-05-12 08:47:46 UTC (rev 8838)
@@ -144,3 +144,7 @@
ul.kmlTree ul ul li:hover {
border: 1px dotted gray;
}
+
+ul.kmlTree li.kmltree-selected {
+ background-color: yellow;
+}
Modified: trunk/mapbender/http/plugins/kmlTree.js
===================================================================
--- trunk/mapbender/http/plugins/kmlTree.js 2014-05-12 08:42:40 UTC (rev 8837)
+++ trunk/mapbender/http/plugins/kmlTree.js 2014-05-12 08:47:46 UTC (rev 8838)
@@ -96,6 +96,9 @@
$feature = $('<li idx="' + i + '" title="'+ title +'"><button class="digitize-menu-arrow"></button><a href="#" >'+ abbrevTitle + '</a></li>');
$featureList.append($feature);
title = obj.data.features[i].properties.name;
+ $feature.bind('click', function() {
+ $(this).addClass('kmltree-selected').siblings().removeClass('kmltree-selected');
+ });
// $feature.bind('click',(function(jsonFeature){return function(){
// var map = o.$target.mapbender();
More information about the Mapbender_commits
mailing list