Skip to content

Commit 4fd9b15

Browse files
committed
Collection: Property mapOptions.scrollWheelZoom defaults to false instead of true.
1 parent 3a59fde commit 4fd9b15

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ This release contains a large number of changes. It lists only the major changes
3636
- `Capabilities`: Removed properties `serviceTypes`, `fileFormats` and `udfRuntimes`. These are not rendered any longer in the component and the corresponding components need to be rendered manually.
3737
- `Collection`:
3838
- Property renamed from `collectionData` to `collection`.
39+
- Property `mapOptions.scrollWheelZoom` defaults to `false` instead of `true`.
3940
- Leaflet and related dependencies don't need to be included explicitly in the HTML files.
4041
- All slots have changed.
4142
- `DeprecationNotice` and `ExperimentalNotice`: The texts have slightly changed so that the property `entity` is not required any longer.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Visualizes a single collection following the STAC-based collection description.
125125
- `height` (string): Height of the map container div. Defaults to `"300px"`.
126126
- `width` (string): Width of the map container div. Defaults to `"auto"`.
127127
- `wrapAroundAntimeridian` (boolean): Whether the world map wraps around the antimeridian (defined the other way round it's also known as "noWrap"). Defaults to `false`.
128-
- `scrollWheelZoom` (boolean): Whether zooming via the mouse scroll wheel is enabled (regardless of this setting, buttons for `+` and `-` are _always_ displayed). Defaults to `true`.
128+
- `scrollWheelZoom` (boolean): Whether zooming via the mouse scroll wheel is enabled (regardless of this setting, buttons for `+` and `-` are _always_ displayed). Defaults to `false`.
129129
- `onAfterMapInit` (function|null): Callback function with two parameters `map` (Leaflet Map) and `rectangles` (Bounding Boxes as Leaflet Rectangle or Leaflet Wrapped Polygon in a Leaflet FeatureGroup) that is called after the map has been initialized. Can be used to further customize the map behavior. Defaults to `null` (no callback).
130130

131131
**Slots:**
@@ -144,7 +144,7 @@ Shows an (expandable) list of all STAC-based collections available at a back-end
144144
**Properties:**
145145

146146
- `collections` (array, required): An array of STAC-based collection objects as defined by the openEO API (`GET /collections`, property `collections`).
147-
- `mapOptions` (object): See the corresponding prop in `Collection`. By default, `scrollWheelZoom` is set to `false`.
147+
- `mapOptions` (object): See the corresponding prop in `Collection`.
148148
- `searchTerm` (string|null): See the prop `externalSearchTerm` in `SearchableList`.
149149
- `sort` (boolean): See the corresponding prop in `SearchableList`.
150150
- `allowExpand` (string): See the corresponding prop in `SearchableList`.

components/Collection.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export default Utils.enableHtmlProps({
228228
height: this.mapOptions.height || "300px",
229229
width: this.mapOptions.width || "auto",
230230
noWrap: this.mapOptions.wrapAroundAntimeridian === undefined ? true : !this.mapOptions.wrapAroundAntimeridian, // negate!
231-
scrollWheelZoom: this.mapOptions.scrollWheelZoom === undefined ? true : this.mapOptions.scrollWheelZoom
231+
scrollWheelZoom: this.mapOptions.scrollWheelZoom === undefined ? false : this.mapOptions.scrollWheelZoom
232232
}
233233
},
234234
hasDimensions() {

components/Collections.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ export default Utils.enableHtmlProps({
2626
},
2727
mapOptions: {
2828
type: Object,
29-
default: () => ({
30-
scrollWheelZoom: false
31-
})
29+
default: () => ({})
3230
},
3331
searchTerm: {
3432
type: String,

0 commit comments

Comments
 (0)