Closed
Description
openedon Jan 5, 2017
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