question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

disableDefaultUI & disableDoubleClickZoom do not work

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

23reactions
diegoheussercommented, Sep 13, 2017

[disableDefaultUI]="true" Apparently not working.

I solved my problem by disabling the controls one by one with: [zoomControl]="false" [streetViewControl]="false"

8reactions
rafaelgoulartcommented, May 11, 2017

Same problem here. [disableDefaultUI]="true" doesn’t work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

disableDefaultUI & disableDoubleClickZoom do not work #933
I am trying to disable disableDefaultUI & disableDoubleClickZoom but on both iOS simulator and ionic serve, both functions still work.
Read more >
Google Maps JavaScript API v3 - How do I make getTilt ...
The Google Maps Javascript API is event driven. ... disableDoubleClickZoom: true, disableDefaultUI: true */ } var map = new google.maps.
Read more >
@ng-maps/core - GitHub Pages
Enables/disables all default UI of the Google map. Please note: When the map is created, this value cannot get updated. disableDoubleClickZoom. Type :...
Read more >
Maps JavaScript API | Google Developers
Does not disable gesture controls, which are separately controlled by the MapOptions.gestureHandling option. disableDoubleClickZoom optional. Type: boolean ...
Read more >
AgmMap - @agm/core
The minimal zoom level of the map allowed. When not provided, no restrictions to the zoom level are enforced. restriction. Type : google.maps.MapRestriction....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found