Google Maps MapViewHolder
Google Maps MapViewHolder
Section titled “Google Maps MapViewHolder”GoogleMapViewState.getMapViewHolder() returns AnyMapViewHolder?. The native Google Maps object is stored as Any and can be cast to GMSMapView.
import GoogleMaps
if let holder = mapViewState.getMapViewHolder(), let mapView = holder.mapView as? GMSMapView { mapView.mapType = .hybrid}Use toScreenOffset(position:) and fromScreenOffset(offset:) for coordinate conversion without casting to the native SDK type.