[Mapbender-commits] r8961 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jul 1 06:45:29 PDT 2014
Author: hwbllmnn
Date: 2014-07-01 06:45:29 -0700 (Tue, 01 Jul 2014)
New Revision: 8961
Modified:
trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
make kml digitizer exclusive
Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-07-01 13:31:15 UTC (rev 8960)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-07-01 13:45:29 UTC (rev 8961)
@@ -184,6 +184,20 @@
editedFeature = null,
status = 'none';
+ var btnelem = $('body').append('<img id="kml-digitizer-pseudo" style="display: none;"></img>').find('#kml-digitizer-pseudo');
+
+ var btn = new Mapbender.Button({
+ domElement: btnelem[0],
+ name: 'kml-digitizer-pseudo',
+ go: $.noop,
+ stop: function() {
+ digitizeDialog.dialog('close');
+ editDialog.dialog('close');
+ editStyleDialog.dialog('close');
+ attributesDialog.dialog('close');
+ }
+ });
+
var create = function() {
$.ajax({
url: '../extensions/makiicons/selection.json',
@@ -700,6 +714,7 @@
this.activate = function () {
mb_disableButton('img');
+ btnelem[0].status = 1;
var mode = status.match(/(new|edit)-.+/)[1];
if(mode === 'new') {
More information about the Mapbender_commits
mailing list