openlayers / ol-cesium

OpenLayers - Cesium integration
http://openlayers.org/ol-cesium/
BSD 2-Clause "Simplified" License
1k stars 326 forks source link

Use ol-cesium in an angular library #1106

Closed mattiatibu closed 11 months ago

mattiatibu commented 1 year ago

I’m using ol-cesium 2.15.0 (the umd version) with angular 15.0.0 and Cesium 1.107.2 , I have to make a library with the angular module that uses ol-cesium to show a map. After building the library and importing it in another project it says that OLCesium is not a constructor , but the same code works perfectly in the original angular application.

How can I export my angular module that uses ol-cesium as an angular library ?

gberaudo commented 11 months ago

Hi @mattiatibu, that is not really an OL-Cesium question. You should ensure your bundlers output ES6 modules.

mattiatibu commented 3 months ago

Hi, if someone is reading this issue, now i'm using the olcs 2.20 and it works in a library