I don`t know how to use it, i have used it 4 years ago, now it has two versions,but neither one can be used:
1、
import OLCesium from 'ol-cesium/src/olcs/OLCesium.js'
his dependency was not found:
ol-cesium/src/olcs/OLCesium.js in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/nxyhs/components/map/mapTool.vue?vue&type=script&lang=js&
To install it, you can run: npm install --save ol-cesium/src/olcs/OLCesium.js
2、
import OLCesium from 'olcs'
Module parse failed: Unexpected token (3:17)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
3、
import OLCesium from 'ol-cesium'
This dependency was not found:
ol/layer/BaseVector.js in ./node_modules/ol-cesium/dist/olcesium.umd.js
To install it, you can run: npm install --save ol/layer/BaseVector.js
Finally, I found the file olcesium. umd. js and modified the reference 'require ("ol/layer/BaseVector. js")' to 'require ("ol/layer/Vector. js")`。Guess what? The problem has been solved!
I don`t know how to use it, i have used it 4 years ago, now it has two versions,but neither one can be used:
1、 import OLCesium from 'ol-cesium/src/olcs/OLCesium.js'
his dependency was not found:
To install it, you can run: npm install --save ol-cesium/src/olcs/OLCesium.js
2、 import OLCesium from 'olcs'
Module parse failed: Unexpected token (3:17) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
3、 import OLCesium from 'ol-cesium' This dependency was not found:
To install it, you can run: npm install --save ol/layer/BaseVector.js
Finally, I found the file olcesium. umd. js and modified the reference 'require ("ol/layer/BaseVector. js")' to 'require ("ol/layer/Vector. js")`。Guess what? The problem has been solved!