Skip to content

Commit

Permalink
Merge branch 'release/2.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
KeziahMoselle committed Mar 5, 2024
2 parents ca2da93 + fa3574c commit 753c19b
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format

## [Unreleased]

## [v2.5.0](https://github.com/studiometa/vue-mapbox-gl/compare/2.4.0...2.5.0) (2024-03-05)

### Added

- **StoreLocator:** add `disableFeatureClickZoom` prop to disable the zoom on feature click ([#136](https://github.com/studiometa/vue-mapbox-gl/pull/136))

## [v2.4.0](https://github.com/studiometa/vue-mapbox-gl/compare/2.3.4...2.4.0) (2024-02-23)

### Added
Expand Down
10 changes: 5 additions & 5 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
@@ -1,7 +1,7 @@
{
"name": "@studiometa/vue-mapbox-gl-workspace",
"private": true,
"version": "2.4.0",
"version": "2.5.0",
"workspaces": [
"packages/*"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studiometa/vue-mapbox-gl-demo",
"version": "2.4.0",
"version": "2.5.0",
"scripts": {
"dev": "nuxt dev",
"build": "nuxt build"
Expand Down
7 changes: 7 additions & 0 deletions packages/docs/components/StoreLocator/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,13 @@ interface StoreLocatorClassesProp {

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

### `disableFeatureClickZoom`

- Type `Boolean`
- Default `false`

Disable the zoom on a feature click.

## Events

### `map-created`
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@studiometa/vue-mapbox-gl-docs",
"private": true,
"type": "module",
"version": "2.4.0",
"version": "2.5.0",
"scripts": {
"dev": "vitepress",
"build": "vitepress build"
Expand Down
10 changes: 10 additions & 0 deletions packages/vue-mapbox-gl/components/StoreLocator/StoreLocator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@
type: [Function, Boolean],
default: false,
},
/**
* Disable the zoom when clicking on a Feature.
*/
disableFeatureClickZoom: Boolean,
});
const emit = defineEmits();
Expand Down Expand Up @@ -269,6 +274,11 @@
if (item) {
emit('select-item', item);
selectedItem.value = item;
if (props.disableFeatureClickZoom) {
return;
}
unref(map).flyTo({ center: feature.geometry.coordinates, zoom: props.itemZoomLevel });
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-mapbox-gl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studiometa/vue-mapbox-gl",
"version": "2.4.0",
"version": "2.5.0",
"description": "A small components library to use Mapbox GL in Vue 3.",
"homepage": "https://github.com/studiometa/vue-mapbox-gl#readme",
"bugs": {
Expand Down

0 comments on commit 753c19b

Please sign in to comment.