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
3
votes
2 answers

Trying to install Mapbox pods for xCode breaks existing pods

I am playing with a navigation app in swift to learn mapbox. I ran into an issue while adding a Textbox which is supposed to use the MapboxSearchUI pod, because I can't install it. My Terminal gives me some errors, I am thinking the versions could…
Jan L
  • 233
  • 1
  • 10
3
votes
1 answer

Swift: If traitCollection.userInterfaceStyle == .unspecified, how do I determine if it's in light or dark mode?

In the settings of my app, the user can choose between 3 system themes: light, dark, or default (which matches the phone's theme). I do this by finding the keyWindow and setting overrideUserInterfaceStyle = .dark for dark mode,…
3
votes
2 answers

iOS MapBox fit camera to multiple coordinates [latitude and longitude] or annotations

in MapBox documentation for android there is LatLngBounds, but for iOS there are nothing, is there any way todo it for iOS
Salar Pro
  • 43
  • 5
3
votes
0 answers

Dragging AnnotationView and update MGLShapeSource

We create a polygon (MGLPolygon) and we are trying to change (simultaneously) the position of the polygon base on the draggable gesture in an annotation view. When doing this the polygon and the annotation starts flickering. Seems that updating the…
Valentin
  • 43
  • 4
3
votes
0 answers

Xcode 12 throwing new C++ errors when compiling mapbox-gl-native

I have always been able to compile a custom copy of mapbox-gl-native, but with the installation of Xcode 12 this has broken. I am getting the following errors: No matching function for call to 'get' How can I fix this C++ error that is showing? I…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
3
votes
0 answers

Will MapBox supports for Indoor Navigation implementation in Xamarin.Forms (Android/IOS/UWP)?

I just started checking for MapBox. I could not find any information about Indoor Navigation Implementation with the following requirements: IPS (Indoor Positioning System by displaying "Blue dot" for accuracy) Showing POI's Static / Dynamic…
3
votes
2 answers

MGLUserLocationAnnotationView subclass does not take the pitch perspective of the camera

I have styled the user location icon according to these docs: https://docs.mapbox.com/ios/maps/examples/user-location-annotation/ It works, but although I worked with camera and pitch, it is displayed in two dimensions. How can i make it that it is…
desmeit
  • 550
  • 1
  • 7
  • 24
3
votes
1 answer

How to dynamically update MGLPointFeature attribute value of MGLShapeSource for Mapbox on iOS?

My application stores data, which includes coordinates and other info, in a local database. Due to the number of data points, the application uses clustering to display the data with Mapbox on iOS. Some of the marker styling is based on data, which…
Will
  • 81
  • 1
  • 6
3
votes
0 answers

How to fix custom route steps not being updated in Mapbox iOS

I'm working on a route navigation app that draws a route on the map. Now I've found out that whenever I'm using a Mapbox simulator the route steps aren't being updated. For example: Just after starting the navigation you get 'Turn right after 100…
Frank
  • 99
  • 3
  • 14
3
votes
1 answer

New Mapbox iOS SDK generating problem, When I install any pod they show problem

I'm using Mapbox SDK, and when installing new pods, It is pod will be showing errors. I change pods and it showing error again and again. I was using these pods, pod 'Mapbox-iOS-SDK', '~> 5.1' pod 'MapboxNavigation', '~> 0.35.0' pod…
3
votes
2 answers

Filter a Layer By a Value Contained in a Stringified JSON Array Property

One of the tables in one of our Mapbox tilesets has a stringified JSON array property of ids: "string_ids":"[\"a\",\"b\"]" I would like to filter features using this property, but can't seem to find a way to do it in the Predicates and Expressions…
Nate Irwin
  • 600
  • 1
  • 11
  • 20
3
votes
2 answers

Validate geojson before creating a Mapbox MGLShape

I'm using the iOS Mapbox SDK to create a MGLShapeCollectionFeature from a goejson FeatureCollection data that comes from a 3rd party API. guard let feature = try? MGLShape(data: jsonData, encoding: String.Encoding.utf8.rawValue) as?…
Jan
  • 7,444
  • 9
  • 50
  • 74
2
votes
0 answers

How to cluster point annotations in map box v10

I am having a hard time finding examples for mapbox sdk iOS v10 annotation clustering. Everything seems to be outdated. Using print statement it seems that the annotations are now clustering, but nothing displays on the map anymore. I am having…
Steve
  • 1,121
  • 1
  • 12
  • 32
2
votes
0 answers

Mapbox Tile Source issue while internet is off

I'm working on an offline map. I updated Mapbox SDK 6.2 to 10.7 Style pack and tile region are downloading successfully. Step 1 - Download the style and a tile source on the home screen Step 2 - Turn off the internet Step 3 - Navigate to the home…
2
votes
1 answer

Mapbox FillLayer not rendering

In MapBox, I am trying to highlight an area of GeoJSON in the map, for example this 'Manhattan, NYC' GeoJSON I found as an example. Below is my ViewDidLoad() function, but the FillLayer doesn't seem to be rendering on the map, and I'm not sure…
nickcoding2
  • 142
  • 1
  • 8
  • 34
1
2
3
16 17