dylanfprice / angular-gm

AngularJS Google Maps Directives
MIT License
198 stars 47 forks source link

Removing the map controls using disabledefaultUI #68

Closed ad-james closed 9 years ago

ad-james commented 9 years ago

Hi,

I've been trying to remove the default map controls from the map using disabledefaultUI from the normal javascript API but it doesn't seem to have an effect. Is there an equivalent property available for angular gm? Or another possible solution to remove the map controls?

Thanks very much

dylanfprice commented 9 years ago

In your gmMap directive you can pass it in to gm-map-options, e.g.

<gm-map gm-map-id="'myMap'" gm-map-options='{disableDefaultUI: true}'>