Не фильтруются метки
Версия библиотеки
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"
>
</CustomBalloon>
</YandexMarker>
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: <p class="punktyi-samovyivoza-balloon__title">Мичуринский проспект 7, к. 1</p> <p class="punktyi-samovyivoza-balloon__time">С 09:00 до 21:00</p> <a class="punktyi-samovyivoza-balloon__link mgo-number" href="tel:84950250202">(495)-025-02-02</a> <a class="punktyi-samovyivoza-balloon__route" href="https://yandex.ru/maps/213/moscow/house/michurinskiy_prospekt_7k1/Z04YcwZiS0ECQFtvfXtxcHtibQ==/?ll=37.512245%2C55.701719&utm_source=share&z=17.06">Построить маршрут</a>,
},
{
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: <p class="punktyi-samovyivoza-balloon__title">ул. Речников, д. 23 «SM24»</p> <p class="punktyi-samovyivoza-balloon__time">С 08:00 до 22:00</p> <a class="punktyi-samovyivoza-balloon__link mgo-number" href="84950250202">(495)-025-02-02</a> <a class="punktyi-samovyivoza-balloon__route" href="https://yandex.ru/maps/213/moscow/house/ulitsa_rechnikov_23/Z04YcA9pQUIPQFtvfXp2eX5hZA==/?ll=37.689878%2C55.678220&utm_source=share&z=17.06">Построить маршрут</a>,
},
]
}
}
computed: { filteredStorages() { if (this.activeFilterListItem === 'Все') { return this.storages; } return this.storages.filter((storage) => storage.filter === this.activeFilterListItem); },
Опишите проблему
hint content у метки некорректно отображает адрес при фильтрации меток
Дополнительная информация
No response
Ответы на вопросы
- [X] Я использую версию 1.x
- [X] Я поискал похожие ошибки и не нашел таковых
@BlackFxTalon Еще актуально? Если да, то можете создать пример в песочнице?