Code Monkey home page Code Monkey logo

Comments (2)

gberaudo avatar gberaudo commented on May 28, 2024 1

The olcs package was introduced when we switched to ES6 modules.
Nowadays people should use the olcs package.

I am keeping this issue open so that we do some cleanup around these packages.

from ol-cesium.

gberaudo avatar gberaudo commented on May 28, 2024 1

Well, here is the full story:

  • ol-cesium
    This npm package contains 1 file in UMD format (in dist) and the src (in src).
    UMD is obsolete stuff, you certainly don't want that and I think we should remove it in the future.
    You can also directly reference the sources like this: import OLCesium from 'ol-cesium/src/olcs/OLCesium.js';.
    That works and it is what I am currently using in projects actually.

  • olcs
    This npm package only contains the source code, put directly at the root (not in a src directory).
    I think we did that package so that it looks nicer when you use it: import OLCesium from 'olcs/OLCesium.js';.
    If I remember correctly, OpenLayers was doing something similar with their "ol" npm package.
    I have not tested but I suppose this still works (and is the recommended way in the Readme).
    Note that import OLCesium from 'olcs'; will not work, which, I suppose, is what you tried in #1062.
    It has never worked but I completly agree that it should.

from ol-cesium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.