I have implemented ionic map. When I drag the marker, it shows as × cross under the marker. I have found out that I have to use raiseOnDrag feature, but it shows error.
Typescript Error Argument of type ‘{ zoom: number; center: LatLng; mapTypeControl: false; streetViewControl: false; disableDefaultUI…’ is not assignable to parameter of type ‘MapOptions’. Object literal may only specify known properties, and ‘raiseOnDrag’ does not exist in type ‘MapOptions’.
initializeMap() {
let image = 'assets/img/marker3.png';
let minZoomLevel = 15;
Geolocation.getCurrentPosition().then((position) => {
this.map = new google.maps.Map(document.getElementById('map_canvas'), {
zoom: minZoomLevel,
center: new google.maps.LatLng(position.coords.latitude, position.coords.longitude),
raiseOnDrag: false,
mapTypeControl: false,
streetViewControl: false,
disableDefaultUI: true,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
});