Problem :
Uncaught TypeError: marker.getCurrentPosition is not a function
at SafeSubscriber._next (main.js:815)
at SafeSubscriber.__tryOrUnsub (vendor.js:38438)
at SafeSubscriber.next (vendor.js:38385)
at Subscriber._next (vendor.js:38325)
at Subscriber.next (vendor.js:38289)
at Marker.trigger (plugins/cordova-plugin-googlemaps/www/BaseClass.js:62)
at Map._onMarkerEvent (plugins/cordova-plugin-googlemaps/www/Map.js:1129)
at Map.nativeCallback (plugins/cordova-plugin-googlemaps/www/googlemaps-cdv-plugin.js:690)
at Object.fireDocumentEvent (cordova.js:235)
at :1:28
Can you please share the full code And let know which plugin you are using I could not find any plugin called google map in Ionic documentation just found geolocation and others…
getMarkerPosition(latlng){
var geocoder = new google.maps.Geocoder();
geocoder.geocode({‘latLng’: latlng},(results, status)=> {
let address= results[0].formatted_address;
console.log(address)
})