直接在代码中指定会:
drawFeature.handler.serverUrl = serverUrl;
drawFeature.handler.libID = 0;
drawFeature.handler.symbolCode = 1;
// 标号id/code是参考https://iclient.supermap.io/web/libs/iclient8c/apidoc/files/Plugins/Plotting/Plot/SymbolType-js.html结合库代码查阅到的
报错:
VM430:1 Uncaught TypeError: Cannot read properties of null (reading 'w')
at new initialize (eval at <anonymous> (SuperMap_Plot-8.1.1-17729.js:1:1), <anonymous>:1:192876)
at SuperMap.Geometry.PlottingGeometry.createGeometry (eval at <anonymous> (SuperMap_Plot-8.1.1-17729.js:1:1), <anonymous>:1:168515)
at new SuperMap.Geometry.PlottingGeometry.createFeature (eval at <anonymous> (SuperMap_Plot-8.1.1-17729.js:1:1), <anonymous>:1:170343)
at initialize.createDefaultFeature (eval at <anonymous> (SuperMap_Plot-8.1.1-17729.js:1:1), <anonymous>:1:41806)
at initialize.createFeature (eval at <anonymous> (SuperMap_Plot-8.1.1-17729.js:1:1), <anonymous>:1:31840)
at initialize.modifyFeature (eval at <anonymous> (SuperMap_Plot-8.1.1-17729.js:1:1), <anonymous>:1:34394)
at initialize.move (eval at <anonymous> (SuperMap_Plot-8.1.1-17729.js:1:1), <anonymous>:1:37923)
at initialize.mousemove (eval at <anonymous> (SuperMap_Plot-8.1.1-17729.js:1:1), <anonymous>:1:40263)
at initialize.triggerEvent (eval at <anonymous> (SuperMap-8.1.1-17729.js:3:1), <anonymous>:1:23554)
at initialize.handleBrowserEvent (eval at <anonymous> (SuperMap-8.1.1-17729.js:3:1), <anonymous>:1:23961)
请问还需要指定什么配置吗?感谢