[Mapbender-commits] r8892 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed May 21 06:28:42 PDT 2014


Author: hwbllmnn
Date: 2014-05-21 06:28:42 -0700 (Wed, 21 May 2014)
New Revision: 8892

Modified:
   trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
hide vertex operations when editing points


Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php	2014-05-21 13:07:23 UTC (rev 8891)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php	2014-05-21 13:28:42 UTC (rev 8892)
@@ -372,6 +372,11 @@
                 o.$target.mb_digitize('moveMode');
                 $(this).addClass('active').siblings().removeClass('active');
             });
+            var point = false;
+            if(feature.geometry.type.match(/point/i)) {
+                point = true;
+            }
+            editDialog.find('.digitize-add-vertex,.digitize-move-vertex,.digitize-delete-vertex').css('display', point ? 'none' : '');
             editDialog.find('.digitize-add-vertex').bind('click', function() {
                 o.$target.mb_digitize('addVertexMode');
                 $(this).addClass('active').siblings().removeClass('active');



More information about the Mapbender_commits mailing list