File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ async function createAdvancedMapMarker(_options: google.maps.marker.AdvancedMark
140140 if (mapMarkers .value .has (key ))
141141 return mapMarkers .value .get (key )
142142 // eslint-disable-next-line no-async-promise-executor
143- const p = new Promise <AdvancedMarkerElement >(async (resolve ) => {
143+ const p = new Promise <google . maps . marker . AdvancedMarkerElement >(async (resolve ) => {
144144 const lib = await importLibrary (' marker' )
145145 const options = typeof _options === ' string'
146146 ? {
@@ -288,7 +288,6 @@ onMounted(() => {
288288 if (center ) {
289289 if (isLocationQuery (center ) && ready .value ) {
290290 // need to resolve center from query
291- // @ts-expect-error broken
292291 center = await resolveQueryToLatLang (center as string )
293292 }
294293 map .value ! .setCenter (center as google .maps .LatLng )
@@ -299,7 +298,6 @@ onMounted(() => {
299298 mapMarkers .value .get (prevCenterHash )?.setMap (null )
300299 mapMarkers .value .delete (prevCenterHash )
301300 }
302- // @ts-expect-error untyped
303301 createAdvancedMapMarker ({ position: center })
304302 }
305303 }
You can’t perform that action at this time.
0 commit comments