[Mapbender-commits] r8833 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu May 8 07:46:34 PDT 2014
Author: hwbllmnn
Date: 2014-05-08 07:46:34 -0700 (Thu, 08 May 2014)
New Revision: 8833
Modified:
trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
implemented context menu remove of single features
Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-08 14:36:02 UTC (rev 8832)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-08 14:46:34 UTC (rev 8833)
@@ -202,6 +202,20 @@
$link.click();
menu.menu('destroy').remove();
});
+ menu.children('li:has(.digitize-remove)').bind('click', function() {
+ var kml = $('#mapframe1').data('kml');
+ var url = $link.parent().parent().attr('title');
+ var ids = [];
+ var i = 0;
+ $.each($link.siblings(), function(k, v) {
+ ids.push($(v).attr('idx'));
+ $(v).attr('idx', i++);
+ });
+ $link.remove();
+ kml.reorderFeatures(url, ids);
+
+ menu.menu('destroy').remove();
+ });
return false;
});
});
More information about the Mapbender_commits
mailing list