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
0
votes
1 answer

Updating a SwiftUI Mapbox Map View to Show New Pin Annotations on a Button Press

I have a SwiftUI project in which I want to forward geocode an address to coordinates and update the Mapbox map view to display a pin annotation at that address's coordinates on a button press. When pressing the button I created, the action seems to…
TJ D'Alessandro
  • 109
  • 1
  • 19
0
votes
0 answers

How to return value out of completion handler (special case)?

I'm trying to get Mapbox's in app navigation to work on SwiftUI. Right now viewController returns nil. I've looked at other answers to this question and most of them recommend putting another completion handler in the function where the callback…
A4_TS
  • 130
  • 1
  • 14
0
votes
1 answer

changing location of mapbox wordmark and text atribution

Rotating the map according to the device orientation, makes position of watermark a bit strange. I understand that that watermark and text attribution are placed relatively to the margin screenshot of landscape view of map on iphone X I would prefer…
mathmax
  • 5
  • 2
0
votes
1 answer

Mapbox iOS Avoid Motorways / Highways

The Mapbox web directions API supports avoiding motorways Link. How is this done in the Mapbox iOS SDK?
bbrame
  • 18,031
  • 10
  • 35
  • 52
0
votes
0 answers

Xcode error. Can't build iOS app with Mapbox API cloned from my Git rep

Unfortunately me and my small team don't have a lot of experience in iOS developing and we really need some help. I have created git rep with our project, also I use Git LFS for files from Mapbox API. But then I try to clone my project from rep and…
0
votes
1 answer

Get buildings polygons points from mapbox with fetch API only

I try to get the buildings geometry coordinates polygons from features, but i cant seem to find a way for this to work without the javascript method queryRenderedFeatures or SourceFeatures. This question Getting building information from mapbox api…
0
votes
1 answer

IOS MapBox clustering point with label from sum by custom points field

How can I create a cluster title based on point fields ? For example. I have points with a value in the properties - “count” And when creating a cluster from these points, I want to see the cluster circle text with the sum of the "count" fields, as…
Artyom
  • 39
  • 2
0
votes
1 answer

Mapbox + SwiftUI: UI Refresh not propagating

I have integrated Mapbox with SwiftUI using the following example: https://github.com/mapbox/mapbox-maps-swiftui-demo It works fine. However when trying to display other @State variables on the View Stack, the UI Refresh propagation stops going down…
Marcio Cabral
  • 75
  • 1
  • 1
  • 9
0
votes
1 answer

handling different MGLPointAnnotation callouts

i have two points 1 & 2 and each point has its own callout but when i try to use the taponcallout function func mapView(_ mapView: MGLMapView, tapOnCalloutFor annotation: MGLAnnotation ) { it is reflected on both points which end up referring me to…
MCapital
  • 1
  • 1
0
votes
1 answer

Mapbox how set fill colour on MGLPolygonFeature (or add feature attributes)

MGLPolygonFeature is supposed to support MGLFeature as a series of attributes on the PolygonFeature. However, I can find no documentation on how to go about setting attribute features at a polygon level. Most documentation refers to tile layer, or…
sweetfa
  • 5,457
  • 2
  • 48
  • 62
0
votes
1 answer

z-index MGLAnnotationView mapbox IOS

Is it possible to manage z-index of MGLAnnotationView in iOs? The yellow and green annotations are supposed to be over blue ones in the attached screenshot. I add the annotation view in this way : var annotationView =…
mathmax
  • 5
  • 2
0
votes
1 answer

Retrieving city name for onscreen region [Mapbox]

I'm relatively new to iOS and Mapbox development. I'm working on an app where a user can freely manipulate a map full of places they have saved. When they reach a zoom-level that is completely filled by the geography of a city, I would like to…
0
votes
1 answer

How to clear/invalidate ambient cache on iOS app

When I update tilesets on mapbox, changes don't appear in the iOS app unless I re-install it. There is seemingly documentation on this here:…
user65909
  • 101
  • 1
  • 9
0
votes
1 answer

Question about mglfillelayer and MGLLineStyleLayer

In mapbox_ios: 1. About MGLFillStyleLayer and MGLLineStyleLayer, how to set different styles (color, width, dotted line) for individual features. A scene: if it is a separate polyhedron with no connection between the two surfaces in different…
Calm
  • 70
  • 8
0
votes
1 answer

Move MGLPointAnnotation on Mapbox Maps like uber

I am integrating Mapbox iOS SDK into my app. Right now I am stuck at a point where I want to achieve car tracking feature like Uber app. I used to have that feature with Google Maps SDK but I cant make it work with Mapbox SDK. I am adding…
Paras Gorasiya
  • 1,295
  • 2
  • 13
  • 33