const { Map } = await google.maps.importLibrary('maps') as google.maps.MapsLibrary
const center = new google.maps.LatLng(43.2955357,-2.8849016)
mapInstance.value = new Map(elMap,{
zoom: 16,
mapId: 'DEMO_MAP_ID',
center,
disableDefaultUI: true
})
const marker = new markerLibrary!.AdvancedMarkerElement({
position: center,
map: mapInstance.value,
//zIndex: 99999999,
})
/*
/* success but this is deprecated
new markerLibrary.Marker({
map: mapInstance.value,
position: center
}) */
not throwing error display in console browser. outside of modal it’s work correctly
I’m try deprecated metod of .Marker() and work correctly