I’m using google maps native in my app in ios and android in ios working fine but in android gives me marker.on is not a function
my code
loadMapH() {
let mapOptions: GoogleMapOptions = {
controls: {
'compass': false,
'zoom': false,
},
gestures: {
'scroll': false,
'tilt': false,
'zoom': false,
'rotate': false
},
camera: {
target: {
lat: this.HosData.lat,
lng: this.HosData.lng
},
zoom: 15,
tilt: 0
}
};
this.map = GoogleMaps.create('map_canvas', mapOptions);
this.map.setOptions({
draggable: false
});
let marker: Marker = this.map.addMarkerSync({
icon: 'blue',
animation: 'DROP',
position: {
lat: this.HosData.lat,
lng: this.HosData.lng
}
});
marker.on(GoogleMapsEvent.MARKER_CLICK).subscribe(() => { });
}
cordova-plugin-googlemaps 2.4.1 “cordova-plugin-googlemaps”