首页 / 浏览问题 / WebGIS / 问题详情
加载标绘后 地图加载不出来 报错
7EXP 2021年08月19日
加载标绘功能后 ,标绘面板可以出来,但是地图出不来了,报这个错误,请问是版本问题吗?我下载了最新版的超图。
VM20:1 An error occurred while rendering.  Rendering has stopped.
undefined
TypeError: this._geoGraphicObjects[e].update is not a function

1个回答

您好,您这样说我也定位不了您的问题啊,如果可以的话,发我您加载标绘的这个.vue组件或者是html代码,我加载看下
1,504EXP 2021年08月19日
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();

        });

    }

这个是标绘的代码
就是在

 mounted() {

    app.showbubble = this.showbubble;

    if (typeof Cesium !== 'undefined') {

        window.startupCalled = true;

        onload(Cesium);

    }

  },

加载完成的时候 onload一下
您说您是标绘出来了,地图没出来,这部分是标绘的代码啊,要不我远程看下?您那边方便吗?
您通过什么远程 我这边是方便的
向日葵,您私信我您的向日葵识别码
...