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

What replaces MGLAnnotationView in Version 10 of Mapbox?

In our application we heavily utilize MGLAnnotationViews because of its flexibility. We can animate annotations on the map with a MGLAnnotationView. For instance, a pulsating effect on an annotation is something that is critical to our…
Joshua Hart
  • 772
  • 1
  • 21
  • 31
0
votes
1 answer

How do I get the viewport in pixels in Mapbox?

How do I get the viewport of the Camera in pixels Android / iOS? I'm trying to use padding to shift the viewport but how do I get the size of viewport? Current code, hard-coding 1300 which most likely won't work on other screen sizes this is why I…
user16967562
  • 924
  • 1
  • 13
0
votes
1 answer

Does the Mapbox Maps SDK v10 replace Mapbox-iOS-SDK 6.4.0?

I'm confused by these two competing Mapbox SDKs for iOS. Currently, I have the Mapbox-iOS-SDK 6.4.0 Cocoapod pod installed in my iOS application. I see there is a new pod available called MapboxMaps 10.0.1. Does MapboxMaps 10.0.1 replace…
lurning too koad
  • 2,698
  • 1
  • 17
  • 47
0
votes
1 answer

NavigationServiceDelegate methods are not being called in custom bottomBanner

I have a custom bottomBanner class that conforms to ContainerViewController class TurnByTurnBottomBannerControllerV3: ContainerViewController { func navigationService(_ service: NavigationService, didUpdate progress: RouteProgress, with…
Borys T
  • 239
  • 2
  • 13
0
votes
1 answer

Mapbox SearchUI

Trying Mapbox SearchUI. When searching, I've noticed suggestions and results are only when the string I'm searching for is part of a name of a place...matching street names and addresses are not returned. The documentation is not very detailed,…
Diego
  • 69
  • 5
0
votes
0 answers

Using Bing map into Mapbox iOS SDK

I am using Mapbox SDK because I want customised map display for particular park with custom tracks and labels. Mapbox allows such customisations easily but I found that Mapbox has low resolution aerial view for certain locations I am working upon…
Paresh Thakor
  • 1,795
  • 2
  • 27
  • 47
0
votes
0 answers

Mapbox IOS set initial region / set userLocation as initial location

Issue: Whenever I open the MGLMapView, the first shown coordinate is the 0,0 Coordinate somewhere around africa, but I would like to have it set to the users initial region (e.g. USA/Germany...) by default. This is the default behavior in MapKit.…
Paul
  • 153
  • 7
0
votes
2 answers

MGLRasterTileSource is drawn above MGLOverlay or below other unwanted layers. How do I get the z-order right on this?

I'm using Mapbox iOS SDK v6.3.0 I have an MGLOverlay on my map, but whenever I add a MGLRasterTileSource it appears above the overlay and hides it! I have currently fixed it by randomly inserting numbers into style.insertLayer(layer, at:…
teradyl
  • 2,584
  • 1
  • 25
  • 34
0
votes
1 answer

Mapbox React Native Ios

Just wondering if anyone is familiar with this error after installing '@react-native-mapbox-gl/maps' into an Ios React Native app. I've installed and updated the Podfile as instructed and am using the latest 8.02beta version of the npm library. …
0
votes
1 answer

Use an animation as an annotation in mapbox ios

Is there any way that I can use an aimation as an annotation in mapbox swift. Or atleast get the allusion and affect. What I want is for an animation to place once the user clicks on the annotation. This is the animation: lottie animation The goal…
0
votes
2 answers

Mapbox autocomplete feature on iOS SwiftUI

I'm developing an iOS app based on swift UI. I want to have the Mapbox autocomplete feature in it. I tried integrating the mapbox-search-SDK but it doesn't seem to support swift UI. Is there anything I could do? Is this something possible? There's…
shade27
  • 65
  • 10
0
votes
1 answer

Swift - Changing modes using overrideUserInterfaceStyle in a view controller does not update UITraitCollection.current.userInterfaceStyle in a UIView

In this view controller, there is a button that changes between light and dark mode using the following code: @IBAction func toggleModeButtonAction(_ sender: Any) { if let appDelegate = UIApplication.shared.delegate, let window =…
0
votes
1 answer

How to detect the single tap on the map view mapbox iOS SDK

How to detect the single tap on the map view, I did not find any function for this in MGLMapViewDelegate.
RockyAo
  • 53
  • 6
0
votes
1 answer

Mapbox (iOS) user annotations covering/preventing touch events from other annotations - use User annotations hit test

I'm having some difficulties with Mapbox iOS. I'm adding annotations on my map, but when they are very close (actually overlap) to the user annotation (i.e MGLUserLocation) taps do not pass to the other annotations. I have tried to play with the…
CloudBalancing
  • 1,461
  • 2
  • 11
  • 22
0
votes
1 answer

How to make MGLSymbolStyleLayer dynamic

I have implemented an MGLPointFeatureCluster in my app and everything is working well, but when I zoom in, the MGLSymbolStyleLayer name takes the last name of the array. I tried everything but still, it does not want to work. func mapView(_…
ASH
  • 9
  • 1
  • 7