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

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

Open
2 tasks done
BlackFxTalon opened this issue Mar 6, 2024 · 1 comment
Open
2 tasks done

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

BlackFxTalon opened this issue Mar 6, 2024 · 1 comment
Assignees
Labels
1.x bug Something isn't working need reproduction

Comments

@BlackFxTalon
Copy link

BlackFxTalon commented Mar 6, 2024

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

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>




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

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

  • Я использую версию 1.x
  • Я поискал похожие ошибки и не нашел таковых
@BlackFxTalon BlackFxTalon added 1.x bug Something isn't working labels Mar 6, 2024
@PNKBizz
Copy link
Member

PNKBizz commented May 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x bug Something isn't working need reproduction
Projects
None yet
Development

No branches or pull requests

3 participants