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

How to change the list of controls #9

Closed
oleg0032 opened this issue Apr 2, 2020 · 1 comment
Closed

How to change the list of controls #9

oleg0032 opened this issue Apr 2, 2020 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@oleg0032
Copy link

oleg0032 commented Apr 2, 2020

How to set a list of controls that should be displayed on the map?

<angular-yandex-map [center]="[55.751952, 37.600739]" [zoom]="12">
    <angular-yandex-placemark [geometry]="[55.751952, 37.600739]"></angular-yandex-placemark>
</angular-yandex-map>

Example: https://tech.yandex.ru/maps/jsbox/2.1/customSet_controls

@oleg0032 oleg0032 added the help wanted Extra attention is needed label Apr 2, 2020
@oleg0032 oleg0032 changed the title How change the list of controls How to change the list of controls Apr 2, 2020
@ddubrava
Copy link
Owner

ddubrava commented Apr 2, 2020

Привет!

Документация компонента - Map.

Inputs содержат state & options. Они имеют точно такие же интерфейсы как в документации Яндекс.Карт. Вот нужные контролы.

Теперь надо в Map передать, используя [state], что написано в документации Яндекс.Карт.

https://stackblitz.com/edit/map-controls

@ddubrava ddubrava closed this as completed Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants