Skip to content

Commit

Permalink
Update imports for OpenLayers v5
Browse files Browse the repository at this point in the history
  • Loading branch information
walkermatt committed Jul 20, 2018
1 parent 494a42c commit 2c2bd9d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/ol-popup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('ol/overlay')) :
typeof define === 'function' && define.amd ? define(['ol/overlay'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('ol/Overlay')) :
typeof define === 'function' && define.amd ? define(['ol/Overlay'], factory) :
(global.Popup = factory(global.ol.Overlay));
}(this, (function (Overlay) { 'use strict';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"doc": "documentation readme src/ol-popup.js --section=API"
},
"peerDependencies": {
"ol": ">4.0.1"
"ol": ">=5.0.0"
},
"devDependencies": {
"babel-plugin-external-helpers": "^6.22.0",
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
return /ol\//.test(id);
},
globals: {
'ol/map': 'ol.Map',
'ol/overlay': 'ol.Overlay'
'ol/Map': 'ol.Map',
'ol/Overlay': 'ol.Overlay'
}
};
2 changes: 1 addition & 1 deletion src/ol-popup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Overlay from 'ol/overlay';
import Overlay from 'ol/Overlay';

/**
* OpenLayers Popup Overlay.
Expand Down

0 comments on commit 2c2bd9d

Please sign in to comment.