我正在开发一个带有 google 地图 typescript api 的应用程序,今天我在应用程序启动时收到此警告消息 ->
自 2024 年 2 月 21 日起,google.maps.Marker 将不再可用。请改用 google.maps.marker.AdvancedMarkerElement。有关终止的更多信息,请访问 https://developers.google.com/maps/deprecations。
但 AdvancedMarkerElement 没有具有 Marker 类的所有属性...为什么呢?我将 @types/google.maps 更新为最新版本,但我不断收到相同的警告,有人知道这件事吗?以及如何解决?