Open kikislater opened 3 months ago
Append ´.init();´ once you created the ofv instance
init was already there but mistake in my side.
Btw it was not working due to ol/Control reference :
server-1 | Server running at http://localhost:1234
server-1 | ⚠ Could not load existing sourcemap of "node_modules/bootstrap-slider/dist/css/bootstrap-slider.css".
server-1 | ⚠ Could not load existing sourcemap of "node_modules/bootstrap-slider/dist/css/bootstrap-slider.css".
server-1 | 🚨 /usr/src/app/node_modules/openfairviewer/src/OpenFairViewer.js:82:74: Cannot resolve dependency 'ol/Control'
server-1 | 80 | import Map from 'ol/Map';
server-1 | 81 | import {unByKey} from 'ol/Observable';
server-1 | > 82 | import {MousePosition, OverviewMap, Zoom, ZoomToExtent, Attribution} from 'ol/Control';
server-1 | | ^
server-1 | 83 | import {OSM, WMTS, TileArcGISRest, XYZ, TileWMS, ImageWMS, Vector, Cluster} from 'ol/source';
server-1 | 84 | import WMTSTileGrid from 'ol/tilegrid/WMTS';
server-1 | 85 | import {Group as LayerGroup, Tile as TileLayer, Image as ImageLayer, Vector as VectorLayer} from 'ol/layer';
server-1 exited with code 1
I got it working with the following commit : https://github.com/kikislater/OpenFairViewer/commit/185c5f97b2744a6976e63482e52831f3343529a4
Hi,
Following readme.md, I have successfully deployed in VM and btw with Docker but app requests a kind of error (output in browser) :
Any recommendation ?