Hi there, i have an app in which i am using google map its working fine but having little problem… its fixed on lat,lng provided by me… its not moving,zooming nothing
please help …
here is the code snippet
loadMap(){
let mapOptions: GoogleMapOptions = {
camera: {
target: {
lat: 43.0741904,
lng: -89.3809802
},
zoom: 18,
tilt: 30
}
};
this.map = GoogleMaps.create('map', mapOptions);
// Wait the MAP_READY before using any methods.
this.map.one(GoogleMapsEvent.MAP_READY)
.then(() => {
console.log('Map is ready!');
// Now you can use all methods safely.
this.map.addMarker({
title: 'Ionic',
icon: 'green',
animation: 'DROP',
position: {
lat: 43.0741904,
lng: -89.3809802
},
})
.then(marker => {
marker.on(GoogleMapsEvent.MARKER_CLICK)
.subscribe(() => {
alert('clicked');
});
});
});
}