Skip to content

Ol-ceium failed to display the openlayer arggis image layer #1290

@hy31337

Description

@hy31337

This code in the OLCS plugin will report an error:
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'parentNode')

Vue3
"ol": "^10.4.0",
"olcs": "^2.22.1",
"cesium": "^1.130.0",

import * as Cesium from 'cesium';
window.Cesium = Cesium;
import 'cesium/Build/Cesium/Widgets/widgets.css';
import OLCesium from 'olcs';

let ol3d = new OLCesium({ map: this.olMap });

Ol-ceium failed to display the openlayer arggis image layer
const layer = new ImageLayer({ zIndex, opacity, source: new ImageArcGISRest({ crossOrigin: 'anonymous', url, 'https://192.168.1.7:6443/arcgis/rest/services/XXXX/MapServer', params: { layers, FORMAT: 'png32', TRANSPARENT: 'true', bboxSR: '3857', imageSR: '3857', f: 'image', }, projection: 'EPSG:3857', }), });

Using Cesium.ArcGisMapServerImageryPeople.fromURL can display
Does Cesium 1.104+require asynchronous loading from URL?

Please help.Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions