mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.35k stars 1.33k forks source link

Can we add Bing maps Mapbox iOS styles? #16613

Open paresh-thakor opened 3 years ago

paresh-thakor commented 3 years ago

I am using Mapbox SDK because I want customised map display for particular park with custom tracks and labels. Mapbox allows such customisations easily but I found that Mapbox has low resolution aerial view for certain locations I am working upon than Bing Maps.

Is it possible to load Bing Maps as base for Mapbox styles? We need to create style from Mapbox studio and in Mapbox iOS SDK we are using this style URL like shown in code here.

let url = URL(string: "mapbox://{STYLE URL}")
let mapView = MGLMapView(frame: view.bounds, styleURL: url)
mapView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
mapView.delegate = self

view.addSubview(mapView)

Can we add Bing Maps anyhow for such style via coding or from Mapbox studio?

Can we utilise this example to load Bing map? https://docs.mapbox.com/ios/maps/examples/source-custom-raster/

I have accessed certain Bing Map APIs.

API to get Aerial imagery for Location: https://docs.microsoft.com/en-us/bingmaps/rest-services/imagery/get-imagery-metadata#get-aerial-imagery-metadata-at-street-level

https://docs.microsoft.com/en-us/bingmaps/rest-services/directly-accessing-the-bing-maps-tiles

Can we utilise these APIs or have any better option than this?

Following images show differences between coverage for both maps.

Bing Map:

autO2

Mapbox Map:

dLjTq