Skip to content

Commit 8de0e3d

Browse files
committed
docs(ol-source-*): drop opaque option since it has been removed with OpenLayers 10
BREAKING-CHANGE: The `opaque` option was previously used to hint the renderer to perform some optimizations on layers known to be fully opaque. This is no longer needed, and the option has been removed. The option is no longer handled by `OlSourceOSM`, `OlSourceXYZ` and `OlSourceTianditu`. It has been removed with [OpenLayers 10](https://github.com/openlayers/openlayers/releases/tag/v10.0.0) see #239
1 parent 44bee6b commit 8de0e3d

File tree

6 files changed

+1
-12
lines changed

6 files changed

+1
-12
lines changed

Diff for: docs/componentsguide/sources/xyz/index.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,7 @@ This deviating props are described in the section below.
4646

4747
### Deviating Properties
4848

49-
#### `opaque`
50-
51-
The value for `opaque` is currently set to `true` by default.
52-
However, this behaviour will be aligned with the OpenLayers default of `false` in the future.
53-
54-
See related issue [XYZ source opacity problem #239](https://github.com/MelihAltintas/vue3-openlayers/issues/239).
49+
none.
5550

5651
## Events
5752

Diff for: src/components/sources/OlSourceOSM.vue

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const props = withDefaults(defineProps<Options>(), {
1818
crossOrigin: "anonymous",
1919
interpolate: true,
2020
maxZoom: 19,
21-
opaque: true,
2221
reprojectionErrorThreshold: 0.5,
2322
transition: 250,
2423
url: "https://tile.openstreetmap.org/{z}/{x}/{y}.png",

Diff for: src/components/sources/OlSourceOsm.vue

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const props = withDefaults(defineProps<Options>(), {
1818
crossOrigin: "anonymous",
1919
interpolate: true,
2020
maxZoom: 19,
21-
opaque: true,
2221
reprojectionErrorThreshold: 0.5,
2322
transition: 250,
2423
url: "https://tile.openstreetmap.org/{z}/{x}/{y}.png",

Diff for: src/components/sources/OlSourceXYZ.vue

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ defineOptions({
1818
const props = withDefaults(defineProps<Options>(), {
1919
attributionsCollapsible: true,
2020
interpolate: true,
21-
opaque: true,
2221
maxZoom: 42,
2322
minZoom: 0,
2423
projection: "EPSG:3857",

Diff for: src/components/sources/OlSourceXyz.vue

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ defineOptions({
1818
const props = withDefaults(defineProps<Options>(), {
1919
attributionsCollapsible: true,
2020
interpolate: true,
21-
opaque: true,
2221
maxZoom: 42,
2322
minZoom: 0,
2423
projection: "EPSG:3857",

Diff for: src/components/sources/TiandituClass.ts

-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export type Options = WMTSOptions & {
99
tk?: string;
1010
isLabel?: boolean;
1111
maxZoom?: number;
12-
opaque?: boolean;
1312
};
1413
export class Tianditu extends WMTSSource {
1514
static layerLabelMap: Record<string, string> = {};
@@ -61,7 +60,6 @@ export class Tianditu extends WMTSSource {
6160
style: options.style || "default",
6261
cacheSize: options.cacheSize,
6362
crossOrigin,
64-
opaque: options.opaque === undefined ? true : options.opaque,
6563
maxZoom: Tianditu.layerZoomMap[options.layerType],
6664
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
6765
url: options.url,

0 commit comments

Comments
 (0)