Asif Raza
Asif Raza

Reputation: 1012

How to add tiles layer on map using MapBox in Swift (iOS mobile app)

I want to set WMS tiles layer on the map using MapBox in my iPhone app.

Note: I am able to add tiles layer at Google Map using provided methods at https://developers.google.com/maps/documentation/ios-sdk/tiles.

Now I am trying to add WMS tiles layer in MapBox but I am not able to get any method to add WMS tiles layer at the map.

If there is any way to set tiles layer in MapBox. Please let me know. Thanks in advance.

Upvotes: 1

Views: 711

Answers (1)

ianthetechie
ianthetechie

Reputation: 690

I recently had need of this for a project myself, and found this to be a very poorly documented part of the Mapbox iOS SDK. Have a look over on this page: https://github.com/mapbox/mapbox-gl-native/blob/master/platform/ios/docs/guides/Tile%20URL%20Templates.md.

You can use {bbox-epsg-3857} as a placeholder in your URL templates. The rest of the URL format will be all your standard WMS junk like version, request, format, etc. For the WIDTH and HEIGHT, use 256.

Upvotes: 1

Related Questions