ngx-openlayers icon indicating copy to clipboard operation
ngx-openlayers copied to clipboard

Use modular ol package

Open achimha opened this issue 8 years ago • 6 comments

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 avatar Feb 10 '17 19:02 achimha

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?

achimha avatar Feb 11 '17 08:02 achimha

100% in favor of moving to the modular package.

quentinlampin avatar Feb 13 '17 13:02 quentinlampin

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

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

achimha avatar Feb 15 '17 09:02 achimha

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

achimha avatar Jun 14 '18 10:06 achimha

Not yet, but we are very interested about this.

davinkevin avatar Jun 15 '18 03:06 davinkevin