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

Issue when integrating Mapbox default Search UI into SwiftUI

Recently I tried to integrate Mapbox default Search UI into my project. My project basically is based on SwiftUI, and the usage example on the Mapbox website is using UIKit. I was attempted to wrapping UIKit into the SwiftUI code. Here is what I…
MacDreamer
  • 33
  • 5
2
votes
1 answer

Memory get increase but not release on dismiss [Mapbox]

I am using MapBox for navigation in my app. After selecting source and destination, I redirect it to Mapbox SDK by presenting the screen. At this moment my memory get increase 180mb, after get dismiss from controller ,my memory doesn't release and…
Myaaoonn
  • 1,001
  • 12
  • 25
2
votes
0 answers

Mapbox iOS - Invisible annotations are shown at top left corner when centerOffset is used

I need to display custom annotations that have downward-pointing pushpin that looks like this: So I inherited MGLAnnotationView and set centerOffset in layoutSubviews(): class ZoneMapAnnotationView: MGLAnnotationView { // ... // code for…
RustamG
  • 1,815
  • 1
  • 14
  • 16
2
votes
0 answers

Make followWithHeading more accurate

We have been testing Mapbox's SDK instead of using Mapkit, and although all is clear and well documented, we already got some trouble while using mapView.userTrackingMode == .followWithHeading Even with Mapbox iOS SDK Examples and…
Toucouleur
  • 1,194
  • 1
  • 10
  • 30
2
votes
1 answer

iOS Mapbox SDK - How to add MGLPointAnnotation markers into a map layer

I need to find a way to convert markers from MGLPointAnnotation to MGLShapeSource or similar, in order to add the markers to a map layer and have full control over how to display and cluster them on the map, for example. I am building an iOS App…
2
votes
2 answers

Use next zoom level for low-dpi raster tiles in Mapbox to have high-res raster tiles

The iOS MKMapView, if you supply it a raster source that is in 256x256 pixels, will load the four tiles of the same region that are +1 zoom-level. Therefore it seems as if the tiles are in high-dpi-mode. Awesome! Now I have an app that uses a third…
Georg
  • 3,664
  • 3
  • 34
  • 75
2
votes
0 answers

Mapbox: how to set a layer's fill color with MGL_MATCH expression

I'm trying to set the fill color of individual features in a Mapbox map layer using the MGL_MATCH expression, but I keep getting: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString mgl_color]:…
2
votes
0 answers

Mapbox Adding Layer - Memory issue

I have a large geojson data of around 50.000 features. When I try to add them to mapView "Message from debugger: Terminated due to memory issue" occurred. I am dividing 50.000 feature around 30-35 layer. Memory using going up to 1.3 GB. First, I…
burak kaya
  • 105
  • 1
  • 1
  • 6
2
votes
0 answers

Too easy to rotate map when zoom

When I use 2 fingers to zoom map, more times is fired the rotation gestures. How can I prevent this behavior? In Android, for example, we have this method mapboxMap.getUiSettings().setIncreaseRotateThresholdWhenScaling(true); that helps to prevent…
benjaminbutton
  • 143
  • 1
  • 16
2
votes
1 answer

StepMilestone | Milestone Listener | Mapbox iOS equivalent

In Mapbox Android SDK, we can able to set/customize the StepMilestone ie we can able to get callbacks before reaching Maneuver of the current step. Is there any equivalent options available in iOS Mapbox sdk for listening the StepMilestone progress?
Sridhar
  • 2,228
  • 10
  • 48
  • 79
2
votes
3 answers

Color clustered features based on clustered point counts

I'm developing an app using Xamarin.iOS and Mapbox iOS SDK (Naxam.Mapbox.iOS NuGet package here. And i'm following this example in MapBox iOS SDK website: https://docs.mapbox.com/ios/maps/examples/clustering/. And i'm having problems converting this…
Ricardo Dias Morais
  • 1,947
  • 3
  • 18
  • 36
2
votes
0 answers

MapBox snapshotter fails with HTTP Status Code 404

I have integrated MapBox into my app, and am trying to create snapshots of the map with MGLMapSnapshotter. I have copied the function directly from the website. The style that options is drawing from shows up correctly on the map. Can anyone tell me…
Cody Lucas
  • 682
  • 1
  • 6
  • 23
2
votes
1 answer

Mapbox WMS support for iOS

Is mapbox supporting WMS services? I found nothing in iOS documentation but in Android section I found this: https://docs.mapbox.com/android/maps/examples/add-a-wms-source/ . I've thired apply this code to iOS platform but my solution dosn't work.…
P.Mol
  • 141
  • 2
  • 6
2
votes
1 answer

How to show polylines added in the source in mapbox ios?

I'm trying to show the polylines taken from a GeoJson then added to the same source but with poor results. NSString *jsonString = @"{\"type\": \"FeatureCollection\",\"features\": [{\"type\": \"Feature\",\"properties\": {},\"geometry\": {\"type\":…
trippolo
  • 21
  • 3
1
vote
1 answer

Why is mapBoxMap.elevation(at:) returning nil?

I've got my map defined as let myResourceOptions = ResourceOptions(accessToken: mapBoxPk) let myMapInitOptions = MapInitOptions(resourceOptions: myResourceOptions, styleURI: StyleURI(rawValue: "mapbox://styles/mapbox/outdoors-v12"))…
Gustavo
  • 190
  • 2
  • 14