Skip to content

Commit 753c19b

Browse files
committed
Merge branch 'release/2.5.0'
2 parents ca2da93 + fa3574c commit 753c19b

File tree

8 files changed

+32
-9
lines changed

8 files changed

+32
-9
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format
44

55
## [Unreleased]
66

7+
## [v2.5.0](https://github.com/studiometa/vue-mapbox-gl/compare/2.4.0...2.5.0) (2024-03-05)
8+
9+
### Added
10+
11+
- **StoreLocator:** add `disableFeatureClickZoom` prop to disable the zoom on feature click ([#136](https://github.com/studiometa/vue-mapbox-gl/pull/136))
12+
713
## [v2.4.0](https://github.com/studiometa/vue-mapbox-gl/compare/2.3.4...2.4.0) (2024-02-23)
814

915
### Added

package-lock.json

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@studiometa/vue-mapbox-gl-workspace",
33
"private": true,
4-
"version": "2.4.0",
4+
"version": "2.5.0",
55
"workspaces": [
66
"packages/*"
77
],

packages/demo/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@studiometa/vue-mapbox-gl-demo",
3-
"version": "2.4.0",
3+
"version": "2.5.0",
44
"scripts": {
55
"dev": "nuxt dev",
66
"build": "nuxt build"

packages/docs/components/StoreLocator/index.md

+7
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,13 @@ interface StoreLocatorClassesProp {
219219

220220
Props to add a custom filtering on the `items` props. That is triggered on `onMapCreated` `onMapMoveend` event.
221221

222+
### `disableFeatureClickZoom`
223+
224+
- Type `Boolean`
225+
- Default `false`
226+
227+
Disable the zoom on a feature click.
228+
222229
## Events
223230

224231
### `map-created`

packages/docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@studiometa/vue-mapbox-gl-docs",
33
"private": true,
44
"type": "module",
5-
"version": "2.4.0",
5+
"version": "2.5.0",
66
"scripts": {
77
"dev": "vitepress",
88
"build": "vitepress build"

packages/vue-mapbox-gl/components/StoreLocator/StoreLocator.vue

+10
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@
111111
type: [Function, Boolean],
112112
default: false,
113113
},
114+
115+
/**
116+
* Disable the zoom when clicking on a Feature.
117+
*/
118+
disableFeatureClickZoom: Boolean,
114119
});
115120
const emit = defineEmits();
116121
@@ -269,6 +274,11 @@
269274
if (item) {
270275
emit('select-item', item);
271276
selectedItem.value = item;
277+
278+
if (props.disableFeatureClickZoom) {
279+
return;
280+
}
281+
272282
unref(map).flyTo({ center: feature.geometry.coordinates, zoom: props.itemZoomLevel });
273283
}
274284
}

packages/vue-mapbox-gl/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@studiometa/vue-mapbox-gl",
3-
"version": "2.4.0",
3+
"version": "2.5.0",
44
"description": "A small components library to use Mapbox GL in Vue 3.",
55
"homepage": "https://github.com/studiometa/vue-mapbox-gl#readme",
66
"bugs": {

0 commit comments

Comments
 (0)