[Mapbender-commits] r8941 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jun 26 07:30:03 PDT 2014
Author: hwbllmnn
Date: 2014-06-26 07:30:03 -0700 (Thu, 26 Jun 2014)
New Revision: 8941
Modified:
trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
zoom to feature when clicking on item in tree
Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-06-26 13:45:40 UTC (rev 8940)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-06-26 14:30:03 UTC (rev 8941)
@@ -256,6 +256,10 @@
if($(e.srcElement).is('button,input')) {
return;
}
+ var idx = $(this).attr('idx');
+ var kml = $('#mapframe1').data('kml');
+ var url = $(this).parent().parent().attr('title');
+ kml.zoomToFeature(url, idx);
editObject($(this), null)();
});
$('li[title="' + url + '"] > .digitize-menu-arrow').die('click').live('click', contextmenuLayer);
More information about the Mapbender_commits
mailing list