angular-openlayers-directive icon indicating copy to clipboard operation
angular-openlayers-directive copied to clipboard

Use my own OL version

Open TeChn4K opened this issue 9 years ago • 1 comments

Hi,

I installed angular-openlayers-directive 1.14.0 and openlayers 3.16.0 via NPM in my project. But i have a problem to make AOD works properly with my OL version.

AOD automatically includes OL from his own node_modules subfolder (3.8.2 ...) and does not consider mine.

I have to comment line 5 of dist/angular-openlayers-directive.js to make it work.

var ol = require('openlayers');

In your opinion, what is the best solution to use my own OL library ?

EDIT : i use a continuous deployment server and it is not possible for me to modify AOD file.

TeChn4K avatar Jun 16 '16 15:06 TeChn4K

Hmmm..this is in fact an issue. Generally speaking I think it isn't necessary to include ol3 within this package. I think we could resolve this with npm peer dependencies.

I have to think about this and what effect it would have for others which at the moment rely on the bundled version. Any comments are welcome

juristr avatar Jun 16 '16 16:06 juristr