AnteaterKit / angular2-yandex-maps

Angular 2 components Yandex Maps.
27 stars 23 forks source link

Disable controlls #6

Closed 10on closed 7 years ago

10on commented 7 years ago

How I can disable all controls?

I'm trying use empty array as argument, as ussialy in JS library, but not result

Thanks!

AnteaterKit commented 7 years ago

Hello!

Set some controls like: template: ` <ya-map [latitude]="55.76" [longitude]="37.64" [controls]="['zoomControl', 'searchControl']"> .....

Disable all is not available now, it's bug <ya-map [latitude]="55.76" [longitude]="37.64" [controls]="['']"> It's hide control, but exception appears. I fix it in several hours.

Thank you!

AnteaterKit commented 7 years ago

fix <ya-map [latitude]="55.76" [longitude]="37.64" [zoom]="6" [panToObjects]="panToObjects" [controls]="[]">