Hi
I upgraded GoogleMaps from v1.4.x to v2.x from @ionic-native, but now I have a :
TS2339:Property ‘CAMERA_MOVE_END’ does not exist on type ‘{ [eventName: string]: string; }’ from IDEA.
Is this causing problems ?
Because it seems that CAMERA_MOVE_END is not working, here is my code :
this.map.one(GoogleMapsEvent.MAP_READY).then(() => {
this.geolocation.getCurrentPosition().then(pos => {
let _latitude = pos.coords.latitude;
let _longitude = pos.coords.longitude;
this.loadMarkers(_latitude, _longitude);
this.map.animateCamera({
target: new LatLng(_latitude, _longitude),
zoom: 5,
duration: 600
}).then(() => {
this.map.on(GoogleMapsEvent.CAMERA_MOVE_END).subscribe(()=>{
alert("STOP");
this.displayMarkers();
});
}
});
}, 500);
});
The alert “STOP” is never shown.
Does anyone know why ? (This code was working on v1.4.x)
Thanks.