func addCalloutView()

in Sources/AmplifyMapLibreUI/AMLMapView/AMLMapView+ProxyDelegate.swift [50:58]


            func addCalloutView(_ calloutView: UIView, to mapView: MGLMapView) {
                if let existingCalloutView = mapView.subviews.first(where: { $0.tag == 42 }) {
                    mapView.willRemoveSubview(existingCalloutView)
                    existingCalloutView.removeFromSuperview()
                }

                calloutView.tag = 42
                mapView.addSubview(calloutView)
            }