You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenLayers got updated to ESM modules, and no longer exports everything as a base namespace that can be used for everything.
Even though you can work around this, with the inject functions and etc, it isn't ideal for types and just causes issues with TypeScript.
It would be nice if jsts got a respective update to support the newer versions of ol, as right now the only way of using it with TypeScript is adding skipLibCheck, which isn't nice imo.
The text was updated successfully, but these errors were encountered:
Agreed, even though OpenLayers still offer a bundled script variant. I could probably do something similar as I have in https://github.com/flatgeobuf/flatgeobuf, i.e make ol an optional dependency and have the bundled version of jsts assume that modules exists as globals.
OpenLayers got updated to ESM modules, and no longer exports everything as a base namespace that can be used for everything.
Even though you can work around this, with the inject functions and etc, it isn't ideal for types and just causes issues with TypeScript.
It would be nice if jsts got a respective update to support the newer versions of
ol
, as right now the only way of using it with TypeScript is addingskipLibCheck
, which isn't nice imo.The text was updated successfully, but these errors were encountered: