Skip to content

Commit d5bfa69

Browse files
d-koppenhagenchrstnbwnkl
authored andcommitted
fix: remove incompatible props and exposed functions
The following removed props and methods were removed since they aren't compatible with the required OpenLayers version 7.4.0. Please refer to the BREAKING CHANGES in the OpenLayers docs form the major release 7.0.0: https://github.com/openlayers/openlayers/releases/tag/v7.0.0 closes MelihAltintas#231
1 parent 1488821 commit d5bfa69

File tree

7 files changed

+0
-28
lines changed

7 files changed

+0
-28
lines changed

src/components/map/OlMap.vue

-21
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ onUnmounted(() => {
9999
100100
provide("map", map);
101101
102-
const focus = () => {
103-
// @ts-ignore
104-
return map?.focus();
105-
};
106102
const forEachFeatureAtPixel = (
107103
pixel: Pixel,
108104
callback: (
@@ -112,23 +108,8 @@ const forEachFeatureAtPixel = (
112108
) => unknown,
113109
options?: AtPixelOptions | undefined
114110
) => map?.forEachFeatureAtPixel(pixel, callback, options);
115-
const forEachLayerAtPixel = (
116-
pixel: Pixel,
117-
callback: (
118-
arg0: FeatureLike,
119-
arg1: Layer<Source, LayerRenderer<any>>,
120-
arg2: SimpleGeometry
121-
) => unknown,
122-
layerFilter?: AtPixelOptions | undefined
123-
) => {
124-
// @ts-ignore
125-
return map?.forEachLayerAtPixel(pixel, callback, layerFilter);
126-
};
127111
const getCoordinateFromPixel = (pixel: Coordinate) =>
128112
map?.getCoordinateFromPixel(pixel);
129-
const refresh = () => {
130-
return map?.refresh();
131-
};
132113
const render = () => map?.render();
133114
const updateSize = () => map?.updateSize();
134115
@@ -147,11 +128,9 @@ map.on("postcompose", (event) => emit("postcompose", event));
147128
defineExpose({
148129
map,
149130
mapRef,
150-
focus,
151131
forEachFeatureAtPixel,
152132
forEachLayerAtPixel,
153133
getCoordinateFromPixel,
154-
refresh,
155134
render,
156135
updateSize,
157136
});

src/components/mapControls/OlMousePositionControl.vue

-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ const props = withDefaults(
1414
projection?: string;
1515
render?: (...args: unknown[]) => unknown;
1616
target?: HTMLElement;
17-
undefinedHTML?: string;
1817
}>(),
1918
{
2019
className: "ol-mouse-position",
21-
undefinedHTML: "&#160;",
2220
}
2321
);
2422

src/components/sources/OlSourceBingMaps.vue

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const props = withDefaults(
2323
{
2424
hidpi: false,
2525
culture: "en-us",
26-
imageSmoothing: true,
2726
maxZoom: 21,
2827
reprojectionErrorThreshold: 0.5,
2928
tileLoadFunction: (imageTile: any, src: any) => {

src/components/sources/OlSourceImageWMS.vue

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const props = withDefaults(
3131
format: "image/png",
3232
version: "1.3.0",
3333
serverType: "mapserver",
34-
imageSmoothing: true,
3534
styles: "",
3635
ratio: 1,
3736
}

src/components/sources/OlSourceOSM.vue

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ defineOptions({
2020
const props = withDefaults(defineProps<Options>(), {
2121
crossOrigin: "anonymous",
2222
interpolate: true,
23-
imageSmoothing: true,
2423
maxZoom: 19,
2524
opaque: true,
2625
reprojectionErrorThreshold: 0.5,

src/components/sources/OlSourceTianDiTu.vue

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const props = withDefaults(defineProps<Options>(), {
2727
version: "1.0.0",
2828
culture: "en-us",
2929
dimensions: () => ({}),
30-
imageSmoothing: true,
3130
maxZoom: 21,
3231
tileLoadFunction: (imageTile, src) => {
3332
((imageTile as ImageTile).getImage() as HTMLImageElement).src = src;

src/components/sources/OlSourceWMTS.vue

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ const props = withDefaults(
3636
{
3737
attributionsCollapsible: true,
3838
tileZoomLevel: 30,
39-
imageSmoothing: true,
4039
projection: "EPSG:3857",
4140
reprojectionErrorThreshold: 0.5,
4241
tilePixelRatio: 1,

0 commit comments

Comments
 (0)