File tree 1 file changed +1
-3
lines changed
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
140
140
if (mapMarkers .value .has (key ))
141
141
return mapMarkers .value .get (key )
142
142
// 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 ) => {
144
144
const lib = await importLibrary (' marker' )
145
145
const options = typeof _options === ' string'
146
146
? {
@@ -288,7 +288,6 @@ onMounted(() => {
288
288
if (center ) {
289
289
if (isLocationQuery (center ) && ready .value ) {
290
290
// need to resolve center from query
291
- // @ts-expect-error broken
292
291
center = await resolveQueryToLatLang (center as string )
293
292
}
294
293
map .value ! .setCenter (center as google .maps .LatLng )
@@ -299,7 +298,6 @@ onMounted(() => {
299
298
mapMarkers .value .get (prevCenterHash )?.setMap (null )
300
299
mapMarkers .value .delete (prevCenterHash )
301
300
}
302
- // @ts-expect-error untyped
303
301
createAdvancedMapMarker ({ position: center })
304
302
}
305
303
}
You can’t perform that action at this time.
0 commit comments