Last active
July 25, 2017 09:08
-
-
Save helderjnpinto/b59ee3a4c7f32390c93e6eb22b1869e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare var google: any; | |
@IonicPage() | |
@Component({ | |
selector: 'page-photo-on', | |
templateUrl: 'photo-on.html' | |
}) | |
export class PhotoOnPage { | |
public zoomOk: boolean; | |
constructor(...){ | |
... | |
} | |
setZoomState(v: boolean = false) { | |
this.zoomOk = v; | |
} | |
public loadMap(){ | |
.maps | |
.event | |
.addListener(this.map, 'zoom_changed', | |
() => { | |
let zoom = this.map.getZoom(); | |
if (zoom <= 11 && !this.showOneTime ){ | |
this.presentToast('To view spots please zoom in.'); | |
} | |
this.setZoomState((zoom >= 11)); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment