-
Notifications
You must be signed in to change notification settings - Fork 817
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
disableDefaultUI & disableDoubleClickZoom do not work #933
Comments
Please create a Plunkr to show the bug. The code/bindings looks right. |
Toggling from Folks reported this problem in https://gitter.im/SebastianM/angular2-google-maps as well on March 31. |
@vkniazeu It's not possible to enable the default UI if it has been disabled without destroying and recreating the map (that's a Google restriction). Whether or not AGM should account for this and automatically destroy/recreate is up to the maintainers, however I'm gonna guess from this comment that they're not interested in changing this. However, I can reproduce your issue with |
@0x62 Thank you for confirming this. |
I also had issues with |
Same problem here. |
Same here for |
Not working for me either. Did you guys find any solution? |
I solved my problem by disabling the controls one by one with: |
Toggling from [disableDefaultUI]="false" to [disableDefaultUI]="true" seems to have no effect for me either. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
correctly disables streetViewControl and zoomControl when disableDefaultUi is set to true fixes: #933
Issue description
I am trying to disable disableDefaultUI & disableDoubleClickZoom but on both iOS simulator and ionic serve, both functions still work.
Steps to reproduce and a minimal demo of the problem
Code as per tutorial but with the disableDefaultUI & disableDoubleClickZoom variables added:
title: string = 'My first angular2-google-maps project'; zoom: number = 16; lat:number = 13.0476421; lng: number = 11.6865258; disDoubleClickZoom: boolean = true; disDefaultUI: boolean =true;
HTML:
<sebm-google-map [latitude]="lat" [longitude]="lng" [styles]="map_features" [zoom]="zoom" [disableDoubleClickZoom]="disDoubleClickZoom" [disableDefaultUI]="disDefaultUI"> <sebm-google-map-marker [latitude]="lat" [longitude]="lng"></sebm-google-map-marker> </sebm-google-map>
Current behavior
Booleans were not passed maps in HTML.
Expected/desired behavior
Booleans should pass to the map and Default UI and double click disabled.
angular2 & angular-google-maps version
Latest version.
The text was updated successfully, but these errors were encountered: