Map.remove Overlay: cannot remove overlay at index as it is not attached to this map in mapkit js
Loading the Latest or a Specific Version of MapKit JS solved my problem. Try to Specific Version of MapKit JS in map.html file. Like these src="https://cdn.apple-mapkit.com/mk/5.20.0/mapkit.js" src="https://cdn.apple-mapkit.com/mk/5.20.0/mapkit.js"