0
votes

We are attempting to overlay MapBox vector tiles on a MapKit map, so far to no avail. The MKTileOverlay obviously doesn't support MVTs, so what MapKit function would allow us to overlay these tiles (including features, zoom levels, etc.) to our existing Apple Map?

Using raster tiles is not an option for our use case. The tiles must be vector tiles.

func addMap() {
    let url = "https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/1/0/0.mvt?access_token=YOUR_MAPBOX_ACCESS_TOKEN"
    
    let tileOverlay = MKTileOverlay(urlTemplate: url)
    
    mapView.addOverlay(tileOverlay)
}