首页 / 浏览问题 / 三维GIS / 问题详情
加载标绘后 地图加载不出来 报错
7EXP 2021年08月18日
serverUrl ='http://support.supermap.com.cn:8090/iserver/services/plot-jingyong/rest/plot';

   debugger;

    InitPlot(viewer, serverUrl);

    function InitPlot(viewer, serverUrl) {

        if (!viewer) {

            return;

        }

        plottingLayer = new cesium.PlottingLayer(scene, "plottingLayer");

        scene.layers.add(plottingLayer);

        debugger;

        plotEditControl = new cesium.PlotEditControl(scene, plottingLayer);//编辑控件

        plotDrawControl = new cesium.PlotDrawControl(scene, plottingLayer);//绘制控件

        plotting = cesium.Plotting.getInstance(serverUrl, scene); //标绘面板

        initPlotPanel("plotPanel", serverUrl, plotDrawControl, plotEditControl,plotting);

        stylePanel = new StylePanel('stylePanel', plotEditControl, plotting);

       

        plotDrawControl.drawFinishEvent.addEventListener(function () {//标绘结束,激活编辑控件

            plotEditControl.activate();

        });

    }

加载上面的期待启动标绘功能后报这个错误 this._geoGraphicObjects[a].initSymbol is not a function
...