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

Framework not found MapboxCommon.xcframework iOS Xcode

I want to use MapBox Search SDK for iOS. So I've followed this official documentation Firstly, I've created ".netrc" in my /home directory as instruction and then add this - use_frameworks! target "TargetNameForYourApp" do pod 'MapboxSearchUI',…
mefahimrahman
  • 197
  • 2
  • 6
  • 29
1
vote
0 answers

Mapbox navigation only using 2 of my waypoints in swift

Im trying to use 3 waypoints in mapbox navigation. When I run my app, It starts at the middle point, start rerouting, and then provides a route from my first to last point. So to make things cleared. If i want to go from Los Angeles, stop at las …
1
vote
1 answer

MapBox - Style Specifications - iOS - number-format

We needed to display the numbers on our map based on a chosen locale. I found the "number-format" style specifications on the Mapbox documentation. Since I can't seem to find a custom function for number formatting, the approach was to use…
kyrillos
  • 13
  • 3
1
vote
0 answers

Mapbox iOS: leaves of cluster crashing sometimes

I have a cluster that has a lot of features in it. I have a logic that zooms in on the clusters until a certain zoomlevel. After that i want to get all the features inside this cluster. Most of the time i works correctly using source.leaves(of:…
1
vote
0 answers

Mapbox iOS: Clusterproperties NSExpression all & any not working

I have a lot of features that all have a category. This can be either "5020" or "5021". I put this in the feature's attributes as NSString. Now i want to add to my clusterproperties, that i have two bool-values "only_5020" and "only_5021". So if…
1
vote
1 answer

Is there a way to integrate Mapbox Search UI SDK and Maps SDK in swiftui

I have tried creating them both seperately as UIViewControllerRepresentables and using a ZStack but that results in the Mapview not being active. This is how mapbox did it with UIKit
1
vote
1 answer

Mapbox Expression to check property of MGLStyleLayer and compare with string

In the mapView:didFinishLoadingStyle: method, I would like to be able to check to see if a MGLSymbolStyleLayer uses a specific class, similar to how we can use filter in a JSON style file to apply a style to only a certain class: However, in my…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
1
vote
0 answers

mapbox ios mapView.setCenter Not working for me (swiftui)

I have two views (BoxView and MapboxMap). I've tried: Setting mapView.centerCoordinates when a button is selected from BoxView. Calling the view, MapboxMap(coords: {insert CLLocationCoordinate2D data} ) when a button is selected from…
1
vote
0 answers

MapBox : I want to add option of avoid toll and re route for avoid traffic in navigation

I can avoid tolls programatically like this routeOptions.roadClassesToAvoid = .toll also to avoid traffic NavigationRouteOptions(waypoints: [userWaypoint, destinationWaypoint], profileIdentifier: .automobileAvoidingTraffic) but is there any…
NavinBagul
  • 741
  • 7
  • 24
1
vote
0 answers

Can i change pointer(MGLPointAnnotation) image in mapbox swift

Hello I'm working on Mapbox I getting data from API and I am showing that data on the map but I want to show the default pointer to the image I'm getting from API can anybody help me for locationStruct in self.locations { …
Aneeq Shah
  • 126
  • 3
  • 11
1
vote
1 answer

Mapbox Swift compass visibilty property

Hi all I am trying to get the compass to disappear off my map and have hit a brick wall. Below is my map initialization function and I'm not sure what the variable is. I have tried mapView.compassEnabled == false, mapView.compassView = nil and a few…
kinzito17
  • 250
  • 2
  • 16
1
vote
0 answers

Mapbox IOS SDK selecting image with TERNARY expression Not working

Can any one help solve how to do this? I'v added a property to each cluster that sums all the active cars and now I need to set the image for the cluster by that property (active_count). Whatever I try I'm getting that it can't be…
Erez
  • 1,933
  • 5
  • 29
  • 56
1
vote
0 answers

iOS Mapbox clustering by specific set of properties

The issue we are tackling is that we need to add some filtering on the cluster by a specific attribute for all objects in a cluster. The code before that demand is: // Create style layer to cluster features as images with labels let…
Erez
  • 1,933
  • 5
  • 29
  • 56
1
vote
1 answer

How to check that user has arrive the destination on Mapbox SDK?

Is there any delegate method of Mapbox NavigationViewController that trigger when user arrive the destination? Because I found that when the destination really close with iPhone/user location, the map view of NavigationViewController will entire…
Chalermchai
  • 21
  • 1
  • 3
1
vote
0 answers

Get single MGLPolylineFeature of MGLMultiPolylineFeature on tap in MGLMapView

I would like to detect a tap on my map and identify the polyline, I tapped on. As there are a LOT of polylines, I but them into a MGLMultiPolylineFeature (as this seems to perform much much better) I create that like so: let polyline =…
Georg
  • 3,664
  • 3
  • 34
  • 75