Skip to content

Map Type Cesium React Reconciler Error #1371

Description

@ki1ikina

We created a new MapStore2 project with the project creation script with the latest MapStore 2 code (726be96), and added the following lines to the index.html file:

<script src="MapStore2/web/client/libs/Cesium/Build/Cesium/Cesium.js"></script>
<link rel="stylesheet" href="MapStore2/web/client/libs/Cesium/Build/Cesium/Widgets/widgets.css" />

Then we changed this line of code in Main.jsx from:

const Main = (props) => <MapViewer plugins={props.plugins} params={{mapType: "leaflet"}}/>;

to:

const Main = (props) => <MapViewer plugins={props.plugins} params={{mapType: "cesium"}}/>;

And we now get the following error in the web browser console:

ReactReconciler.js:51 Uncaught (in promise) TypeError: Cannot read property '_currentElement' of null(…)

When switching mapType back to "leaflet" or even "openlayers" all works as expected. Why does a mapType of "cesium" not work?

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions