yandex-maps-unofficial / vue-yandex-maps

Yandex Maps 3.0 components library for VueJS.
https://yandex-maps-unofficial.github.io/vue-yandex-maps/
MIT License
66 stars 9 forks source link

Не фильтруются метки #248

Open BlackFxTalon opened 4 months ago

BlackFxTalon commented 4 months ago

Версия библиотеки

1.1.0

Как воспроизвести

Пример кода - <YandexMarker v-for="(storage, index) in filteredStorages" :key="1-marker-${index}" :marker-id="1-marker-${index}" :coordinates="storage.coords" :properties='{ hintContent: storage.address, balloonContent: storage.balloonContent }' :options="{ iconLayout: 'default#imageWithContent', iconImageHref: iconImageHref(storage), iconImageSize: iconImageSize, iconImageOffset: [-18, -50], hideIconOnBalloonOpen: false, balloonOffset: balloonOffset, balloonPanelMaxMapArea: 0, }" :events="['mouseenter', 'mouseleave', 'click']" @mouseenter="mapMarkerMouseEnter" @mouseleave="mapMarkerMouseLeave" @click="mapMarkerMouseLeave"

<template #component> <CustomBalloon :storages="center"

data() { return { activeFilterListItem: 'Все', storages: [ { filter: 'Центры ВеземКолеса', coords: [55.701719, 37.512245], address: 'Мичуринский проспект 7, к. 1', time: 'С 09:00 до 21:00', phone: '(495)-025-02-02', phoneURL: '84950250202', routeURL: 'https://yandex.ru/maps/213/moscow/house/michurinskiy_prospekt_7k1/Z04YcwZiS0ECQFtvfXtxcHtibQ==/?ll=37.512245%2C55.701719&utm_source=share&z=17.06', balloonContent: `

Мичуринский проспект 7, к. 1

С 09:00 до 21:00

(495)-025-02-02 Построить маршрут , }, { filter: 'Партнеры', coords: [55.903847, 36.896324], address: 'ул. Речников, д. 23 «SM24»', time: 'С 08:00 до 22:00', phone: '(495)-025-02-02', phoneURL: '84950250202', metro: 'Смоленская', partnerCenter: 'Партнерский центр', routeURL: 'https://yandex.ru/maps/213/moscow/house/ulitsa_rechnikov_23/Z04YcA9pQUIPQFtvfXp2eX5hZA==/?ll=37.689878%2C55.678220&utm_source=share&z=17.06', balloonContent:

ул. Речников, д. 23 «SM24»

С 08:00 до 22:00

(495)-025-02-02 Построить маршрут `, }, ] } }

computed: { filteredStorages() { if (this.activeFilterListItem === 'Все') { return this.storages; } return this.storages.filter((storage) => storage.filter === this.activeFilterListItem); },

Опишите проблему

hint content у метки некорректно отображает адрес при фильтрации меток

Дополнительная информация

No response

Ответы на вопросы

PNKBizz commented 2 months ago

@BlackFxTalon Еще актуально? Если да, то можете создать пример в песочнице?