Skip to content

Map Type Cesium React Reconciler Error #1371

Closed

Description

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions