Skip to content

Commit ff00f13

Browse files
committed
2 parents 3e8999c + 8ec0bd1 commit ff00f13

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

examples/classic/plot_querySymbolLib.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,11 @@ <h5 class='panel-title text-center' data-i18n="resources.title_querySymbolLib"><
206206
var container = document.getElementById("queryResult");
207207
var table = document.createElement("table");
208208
drawNodeClick = function () {
209-
drawGraphicObject.activate();
209+
drawGraphicObject.deactivate();
210210
drawGraphicObject.handler.libID = this.libID;
211211
drawGraphicObject.handler.symbolCode = this.symbolCode;
212212
drawGraphicObject.handler.serverUrl = this.serverUrl;
213+
drawGraphicObject.activate();
213214
};
214215
var i = 0;
215216
var rowLength = (queryResult.length % 3 === 0) ? queryResult.length / 3 : queryResult.length / 3 + 1;
5.43 KB
Loading

examples/leaflet/plot_dynamicPlot.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<!--********************************************************************* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.*********************************************************************-->
1+
<!--********************************************************************
2+
* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
3+
*********************************************************************-->
24
<!DOCTYPE html>
35
<html>
46
<head>
@@ -197,6 +199,7 @@
197199

198200
map.on('contextmenu', function (event) {
199201
if(editControl.getSelectedFeatures().length == 0){
202+
drawControl.handler.disable();
200203
return;
201204
}
202205
var contentMe = document.getElementById("contentMe");

examples/leaflet/plot_querySymbolLib.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ <h5 class='panel-title text-center' data-i18n="resources.title_querySymbolLib"><
103103
var container = document.getElementById("queryResult");
104104
var table = document.createElement("table");
105105
var drawNodeClick = function () {
106-
drawControl.handler.enable();
106+
drawControl.handler.disable();
107107
drawControl.handler.libID = this.libID;
108108
drawControl.handler.code = this.symbolCode;
109109
drawControl.handler.serverUrl = this.serverUrl;
110-
110+
drawControl.handler.enable();
111111
};
112112
var i = 0;
113113
var rowLength = (queryResult.length % 3 === 0) ? queryResult.length / 3 : queryResult.length / 3 + 1;

0 commit comments

Comments
 (0)