disableDefaultUI & disableDoubleClickZoom do not work
See original GitHub issueIssue 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.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:11 (1 by maintainers)
Top GitHub Comments
[disableDefaultUI]="true"
Apparently not working.I solved my problem by disabling the controls one by one with:
[zoomControl]="false"
[streetViewControl]="false"
Same problem here.
[disableDefaultUI]="true"
doesn’t work.