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
0 answers

Problem with MapBox PointAnnotations with data from Alamofire

In my app I need to get annotations coordinates from server, so im getting is with Alamofire request. And when I try to add annotations to map from Alamofire pid im getting unknown error class MapViewController : UIViewController,…
0
votes
0 answers

iOS 14 and Swift 5 Updates

I am a little bit lost. I have been working on a project for quite some time and when I updated to the latest Xcode and updated to the recommended Swift 5 settings, I have had nothing but problems. I am receiving errors like this: After looking…
mick1996
  • 516
  • 9
  • 31
0
votes
1 answer

iOS Map box installation using .netrc file

Even I am facing the same issue, I followed steps from below URL, https://docs.mapbox.com/ios/maps/overview/ for setting up a secret and public tokens, but still getting the same issue [!] Error installing Mapbox-iOS-SDK [!] /usr/bin/curl -f -L -o…
Afsara
  • 1,411
  • 3
  • 13
  • 31
0
votes
1 answer

Make mapbox annotations draggable as soon as they are added to the map

I have successfully managed to implement draggable annotations by using this link https://docs.mapbox.com/ios/maps/examples/draggable-views/. However, these annotations become draggable only after long pressing on them. I am looking for a solution…
Sarthak Mishra
  • 1,033
  • 1
  • 11
  • 27
0
votes
1 answer

When using Mapbox, is it possible to scroll within a limited area?

I am using Mapbox_ios_sdk library Can the scroll range be limited based on a specific location on the map? For example x-100m to x+100m & y-100m to y + 100m (diameter 200m)
Park
  • 401
  • 4
  • 10
0
votes
1 answer

Change color of Icon for un-clustered markers in Mapbox IOS

I am trying to implement clustering in Mapbox in IOS. I want to change color for unclustered StyleLayer depending on specific attribute in MGLPointFeature. following is the code for single feature : let feature = MGLPointFeature() feature.coordinate…
Sohail Ahmad Khan
  • 344
  • 1
  • 3
  • 18
0
votes
1 answer

How to use the completionhandler for mapView in mapbox?

I want to run a function at the end of animation of the function setUserTrackingMode: https://docs.mapbox.com/ios/api/maps/5.9.0/Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)setUserTrackingMode:animated:completionHandler: The console outputs…
desmeit
  • 550
  • 1
  • 7
  • 24
0
votes
2 answers

Build Mapbox pod iOS with Kotlin/Native Multiplatform

I'm trying to add Mapbox to Kotlin/Native project, where I use cocoapods: (already set up for Android - works fine) //plugin kotlin("native.cocoapods") //pod cocoapods { // Configure fields required by CocoaPods. …
ilbets
  • 710
  • 1
  • 9
  • 35
0
votes
0 answers

Can't add Mapbox and MapboxNavigation SDK

In order to implement Mapbox SDK, according to official docs (https://docs.mapbox.com/ios/maps/overview/#install-the-maps-sdk, https://docs.mapbox.com/ios/navigation/overview/), adding Mapbox-iOS-SDK and MapboxNavigation through Cocoapods, always…
legsho
  • 21
  • 5
0
votes
0 answers

How do I hide the logoView in the NavigationMapView for a NavigationViewController?

I can successfully hide the Mapbox logoView in an MGLMapView, but when I try to do the same for the NavigationMapView of a NavigationViewController, it doesn't work. Here's what I'm trying: @IBAction func startNavigation(_ sender: Any) { guard…
Dylan
  • 2,315
  • 2
  • 20
  • 33
0
votes
1 answer

Mapbox iOS SDK use multiple files

I wanted to code a map app for personal use (iOS) using swift 5. I have already been able to make it working by using a single file, but the code looks like a mess, so I decided to use multiple files and just call functions from the…
DolphinAir
  • 48
  • 4
0
votes
1 answer

Strange Problem, Navigation Code Only Works In The Morning (California Time)

I've encountered a strange problem where this code only runs in the morning (12am ~ 6am) California time. Directions.shared.calculate(options){ (session, result) in print("Here: \(result)") guard case let .success(response)…
A4_TS
  • 130
  • 1
  • 14
0
votes
1 answer

Cannot invoke 'unarchiveObject' with an argument list of type '(ofClasses: [NSObject.Type], from: Data)'

As per Vadian answer How to NSKeyedUnarchiver.unarchiveObject for transforming Deprecated NSKeyedUnarchiver.unarchiveObject to work in Swift 5/iOS 12+ I managed to transform archive part to work, but I'm still unable to fix the unarchive part, here…
user13511124
0
votes
1 answer

Mapbox iOS - Custom annotation didSelect not called

I'm displaying custom annotations over the map and having hard times to receive didSelect calls on my delegate. Here is the code of the ViewController: class TestAnnotationClickViewController: UIViewController, MGLMapViewDelegate { override…
RustamG
  • 1,815
  • 1
  • 14
  • 16
0
votes
2 answers

Custom MGLAnnotationView using Mapbox for IOS

I am very confused why this is displaying the default image instead of a round blue circle over New York. Any insight about this as well as when the default image is used will be greatly appreciated. import UIKit import Mapbox class ViewController:…
alex_m185
  • 11
  • 2