Prevent replacing of WMS Overlay while adding Polygon or Polyline to MKMapView
问题 I have implemented Web Map Service in the MKMapView by subclassing the MKTileOverlay & rendering it using MKTileOverlayRenderer . It works fine and displays the custom map properly. When I call method like mapView.addOverlay(polyLine) to add Polyline or Polygon. The WMS overlay gets replaced with the Apple Maps overly. // Set up the overlay and adds it to MKMapView. func setupTileRenderer() { let wmsURL = formTemplate?.wmsURL let overlay = WMSTileOverlay(urlTemplate: wmsURL) overlay