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

Скрыть оригинальные остановки #185

Closed
anis-18 opened this issue Sep 13, 2022 · 1 comment
Closed

Скрыть оригинальные остановки #185

anis-18 opened this issue Sep 13, 2022 · 1 comment

Comments

@anis-18
Copy link

anis-18 commented Sep 13, 2022

Есть ли возможность скрыть оригиналные остановки ?

@ownikss
Copy link
Contributor

ownikss commented Sep 13, 2022

Это можно сделать используя пропс mapStyle. Туда передается описание стиля карты
Примерный вариант будет выглядеть так.

Подробнее можно посмотреть в нативной документации https://yandex.ru/dev/maps/mapkit/doc/dg/concepts/style.html

<YaMap
  mapStyle={JSON.stringify([
    {
      types: ['point'],
      tags: { all: ['transit'] },
      stylers: {
        visibility: 'off'
      }
    }
  ]}
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants