quentinlampin / ngx-openlayers

Angular2+ components for Openlayers 4.x
Mozilla Public License 2.0
137 stars 98 forks source link

Use modular ol package #44

Open achimha opened 7 years ago

achimha commented 7 years ago

There is now a bundler friendly package of OL which is much better suited for our purposes: https://www.npmjs.com/package/ol/

I think this one should be used instead of the monolithic openlayers package.

achimha commented 7 years ago

Another related issue is custom builds. OL is very large and users are supposed to create a cutomized build with the features they need. The way angular2-openlayers works, it drags in dependencies for everything it implements and it exports everything globally.

I suggest to change it to have one component per file and not export everything by default. This way users can only pick what they need and not have unneeded OL dependencies because of this library.

Any suggestions?

quentinlampin commented 7 years ago

100% in favor of moving to the modular package.

achimha commented 7 years ago

Couldn't get to the ol package to work from TypeScript.

https://github.com/openlayers/openlayers/issues/6496

achimha commented 6 years ago

Has anybody given this another try? Not using a monolithic openlayers would have a a lot of advantages.

davinkevin commented 6 years ago

Not yet, but we are very interested about this.