Questions tagged [mapbox-ios]

Use when developing iOS apps with a Mapbox SDK. Prefer to use a more specific SDK tag instead.

Available specific SDK Docs and Tags:

Maps SDK for iOS -> mapbox-ios-maps

Navigation SDK for iOS -> mapbox-ios-nav

Vision SDK for iOS -> mapbox-ios-vision

247 questions
1
vote
1 answer

Change userLocation puck color using MapBox v10

I’m working on migrating my MapBox version from v6.4 to v10. I have been able to migrate almost everything, only issue I have at the moment is changing the userLocation puck tintColor. What I was doing on v6.4 was changing the color in…
1
vote
1 answer

How do I declare a view so it's initialization and itself are NOT in the representable view?

I have a UIKit representable view for using Mapbox in my SwiftUI app and control the mapView from inside the Coordinator by passing the MapboxViewRepresentable View itself when making the coordinator. The problem I am having is that the mapView, its…
Jake Smith
  • 580
  • 3
  • 11
1
vote
1 answer

Querying features in Mapbox iOS SDK 10

I'm currently migrating from Mapbox Maps SDK 6.x.x to mapbox-maps-ios 10.2.0 and I'm attempting to add a symbol layer by querying for feature data containing location coordinates to assign those coordinates to points in the layer. Previously in…
Adedayo
  • 11
  • 2
1
vote
1 answer

How do you cluster annotations with v10 of the MapBox iOS SDK?

How is clustering done with v10 of the Mapbox iOS SDK? And can I use ViewAnnotations to show custom views for clusters? In short, I am trying to cluster annotations on a Mapbox MapView, and show a custom UIView at each cluster. Something like the…
sammcode
  • 59
  • 3
1
vote
1 answer

MapBox Maps iOS SDK: Is there a way to animate PointAnnotation when it's being selected

I migrated from old Mapbox Maps SDKs for iOS and macOS v6.x.x to mapbox-maps-ios v10.1.0. A lot of API got changed. I was able to restore same functionality using new SDK, however I could not find a way to animate annotations upon selection. Before…
Valerii Lider
  • 1,774
  • 16
  • 21
1
vote
0 answers

Unsupported URL for image layer mapbox iOS

I am trying to learn mapbox maps iOS but am struggling with inserting an image layer. The image is however, failing to load, throwing the error: Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" The docs for for this structure are…
safnasfsa
  • 107
  • 9
1
vote
1 answer

3D Pucker as user's location mapbox ios

I am using Mapbox Maps iOS to create a custom 3d pucker and use that to display the user's location. Everything seems to be working, the camera redirects to the user's location, the pucker successfully loads. However, I am having trouble setting the…
safnasfsa
  • 107
  • 9
1
vote
2 answers

Mapbox ios sdk won't install for flutter project

I have checked nearly everything. My .netric file is in the home directory and it is in the right format. My secret key has download:read checked off when I made it, but still, every time I want to download the podfile, it gives me this error: [!]…
ShmoonMaster
  • 51
  • 1
  • 2
1
vote
1 answer

How do I decode an "encoded polyline" from Mapbox on iOS

I have an encoded polyline created by the Mapbox javascript API (https://github.com/mapbox/polyline) and I would like to decode this polyline into a list of coordinates (or even just an MGLShape) on the iOS app. I attempted to decode directly to an…
teradyl
  • 2,584
  • 1
  • 25
  • 34
1
vote
0 answers

Re-routing takes around 10 seconds to plot the next path Mapbox

I'm working on Navigation iOS application and I'm using Mapbox for route and navigation. Everything with Mapbox looks fine except the rerouting functionality. According to the official Mapbox documentation for iOS, re-routing get trigger when we…
Sourav Mishra
  • 501
  • 4
  • 21
1
vote
1 answer

MapBox iOS: How to access a routes coordinates to draw it using polyline

I am trying to display a route using MGLPolylineFeature in Mapbox after having calculated it. The calculation works and my map resizes to the correct points, I just can't seem to display the Polyline because the way you get the coordinates seems to…
Jan L
  • 233
  • 1
  • 10
1
vote
0 answers

Carthage Update Task failed with exit code 65 error with Xcode 12.5 and Mapbox 2021

I an experiencing a Carthage exit code 65 error trying to update Mapbox to work with the latest version of XCode 12.5 that Apple is now requiring to publish to the App Store. I am aware that exit code 65 is a relatively common error going back many…
user6631314
  • 1,751
  • 1
  • 13
  • 44
1
vote
1 answer

Conditional color expression for Mapbox v10 iOS SDK

With the Mapbox v10 SDK reaching the release candidate stage, I've started updating an existing iOS app that was built on the previous release of the Mapbox iOS SDK (v6.3). The app shows circular markers on the map to represent the location of some…
bmt22033
  • 6,880
  • 14
  • 69
  • 98
1
vote
0 answers

Japanese label cannot be displayed on Mapbox

I'm developing an app that displays a map using Mapbox. I use the Flutter framework and mapbox_gl plugin. I created a Japanese label display style in MapBox Studio and specified the URL in the mapbox_gl plugin. But all the labels disappear. (English…
shige
  • 11
  • 1
  • 2
1
vote
0 answers

Adjust header for MapboxSDK Tile Request

Our iOS app uses MGLRasterTileSource to display images in a map from our backend. This has been working well, but now our backend API for fetching these raster tile images need an accept header value of image/png. Right now the MapboxSDK is sending…
bmjohns
  • 6,344
  • 1
  • 33
  • 39