Skip to content

Commit

Permalink
Upgrade ol, Don't import from barrel files openlayers/openlayers#16461
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jan 29, 2025
1 parent 7a3a3e0 commit f3bc487
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"core-js": "^3.6.5",
"node-polyfill-webpack-plugin": "^2.0.0",
"oidc-client-ts": "^3.0.1",
"ol": "^10.3.1",
"ol": "~10.4.0",
"ol-stac": "^1.0.0-rc.6",
"proj4": "^2.15.0",
"remove-markdown": "^0.5.0",
Expand Down
5 changes: 3 additions & 2 deletions src/components/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ import TextControl from './maps/TextControl.vue';
import { mapGetters } from 'vuex';
import { BPopover } from 'bootstrap-vue';
import proj4 from 'proj4';
import {register} from 'ol/proj/proj4.js';
import Select from 'ol/interaction/Select';
import {register} from 'ol/proj/proj4.js';
import Stroke from 'ol/style/Stroke';
import Style from 'ol/style/Style';
import StacLayer from 'ol-stac';
import { getStacObjectsForEvent } from 'ol-stac/util.js';
import { Stroke, Style } from 'ol/style.js';
register(proj4); // required to support source reprojection
Expand Down
2 changes: 1 addition & 1 deletion src/components/maps/ControlMixin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Control } from 'ol/control.js';
import Control from 'ol/control/Control.js';

export default {
props: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/maps/MapSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import Style, { createDefaultStyle } from 'ol/style/Style';
import proj4 from 'proj4';
import VectorSource from 'ol/source/Vector';
import GeoJSON from 'ol/format/GeoJSON';
import { Fill } from 'ol/style';
import Fill from 'ol/style/Fill';
import VectorLayer from 'ol/layer/Vector';
import create from 'stac-js';
import { toGeoJSON } from 'stac-js/src/geo.js';
Expand Down
2 changes: 1 addition & 1 deletion src/components/maps/UserLocationControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</template>

<script>
import { Point } from 'ol/geom';
import Point from 'ol/geom/Point';
import ControlMixin from './ControlMixin';
import { fromLonLat } from 'ol/proj';
import { BIconPinMapFill } from 'bootstrap-vue';
Expand Down

0 comments on commit f3bc487

Please sign in to comment.