Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release] 2.5.0 #137

Merged
merged 8 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading