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

MapboxGL.PointAnnotation not loading svg or Images in functional component

My marker component is not loading local images or svg. PointAnnotation dowsnot load images or svg using MarkerView loads images but cannot click or attach press event const Marker = ({ coordinate, image, id,svg ,onMarkerPress,data}) => { const…
Sa bin Sth
  • 11
  • 1
1
vote
0 answers

Determine altitude without rendering terrain

I wish to get the altitude of a given visible point on the map. If I setup terrain like so: var source = RasterDemSource() source.url = "mapbox://mapbox.mapbox-terrain-dem-v1" try! style.addSource(source, id: "sourceId") let terrain =…
David
  • 732
  • 1
  • 6
  • 15
1
vote
1 answer

Delegate not being called in Mapbox iOS

I am trying to detect when a certain amount of distance has been travelled in an automobile. For example, I am trying to call a function every 1 miles I am currently using NavigationMapViewDelegate but my delegate is not being called and I am not…
cyo
  • 69
  • 1
  • 14
1
vote
0 answers

Mapbox - Failed to resolve tileset descriptors: Loading request canceled

I have the following code for download map regions. This function is called on multiple regions asynchronously. In debug/development mode I rarely get this error. But in production release app I get this issue sometimes and the whole offline user…
Waleed
  • 1,097
  • 18
  • 45
1
vote
1 answer

Change map pitch as zoom level changes in Mapbox

I'm trying to change the pitch to be more and more angled as the user zooms in, but I have a suspicion it's because the .cameraChanged event is firing fast all the time, so the app crashes on the initial map load. Any suggestions on figuring out how…
nickcoding2
  • 142
  • 1
  • 8
  • 34
1
vote
1 answer

How to add a circle to the mapbox map

Please help! I'm doing everything according to the documentation, but it's in Kotlin. I need to display circles on the map. I followed the prompts of the IDE, but the application crashes AnnotationPlugin annotationAPI =…
1
vote
1 answer

Mapbox add interactivity to polygon in FillLayer

I have a FillLayer with polygons generated from a local geojson file. I want to add interactivity to these polygons but am not sure how to do it with the iOS SDK. I found an example that is able to do something similar to what I need to do but in…
nickcoding2
  • 142
  • 1
  • 8
  • 34
1
vote
0 answers

Mapbox 10 `MGLNetworkConfiguration` replacement

I am migrating from Mapbox 6 to Mapbox 10. I have a source, which needs a authorisation header in order to be accessed. Unfortunately, can't find a way to set the authorisation header for the source: let vectorSource =…
πter
  • 1,899
  • 2
  • 9
  • 23
1
vote
0 answers

How to show address of search suggestion in MapboxPanelController

by implementation of search panel with MapboxSearchController, I can't show the address of suggested objects. The code looks like this: final class SearchPanelExample: UIViewController { private let searchController =…
Illya Krit
  • 925
  • 1
  • 8
  • 9
1
vote
1 answer

Unable to move AnnotationView in Mapbox V10

I have been using Mapbox v6 but I got mail from Mapbox to upgrade to v10 for the latest updates. My app uses Mapbox to show custom maps and show live locations for multiple users. In V6, we have implemented custom Annotations and getting custom…
Paresh Thakor
  • 1,795
  • 2
  • 27
  • 47
1
vote
1 answer

React Native Mapbox v10 iOS map

I am React Native developer and I am building a shuttle Bus application using Mapbox. I got some questions while I was working on my project :) Using the same code, I can load Mapbox map on Android emulator, however I cannot load map on iOS. I am…
1
vote
1 answer

Mapbox v10 iOS Updating the camera while dragging viewAnnotation outside screen bounds causes rapid camera movement

With the Mapbox v10 iOS SDK, a lot of APIs changed including the drag and camera options. Basically, when using v6, everything is working perfectly fine when dragging an annotation view(subclasss MGLAnnotationView) outside of map bounds just by…
Val Moratalla
  • 191
  • 1
  • 9
1
vote
1 answer

iOS Mapbox SDK cannot create Exp(.all) from array of inputs

I have a geojson with a thousand of features with different properties. Some properties are arrays like: options: [foo, bar, buz]. And i need to filter features by values from these arrays, but i stuck on the building filters dynamically in…
1
vote
1 answer

Swift - how to Filter a FeatureCollection

I'm using MapBox (Turf), trying to filter a specific Feature from a FeatureCollection. I successfully export the GeoJSON from QGIS and decode the GeoJSON into a FeatureCollection. I can't figure out the syntax to access the geometry…
Jeff Ericson
  • 61
  • 1
  • 9
1
vote
1 answer

[Mapbox iOS SDK]: Polygon border fade-out / smooth border

If i use fil-in pattern in mapbox iOS sdk with a geojson file, the overlay gets a straight border or better so say sharp rectangular edges. Is it possible to make those corners round and smooth out the border? Maybe antialiasing? Even if i use a…
Andreas
  • 397
  • 4
  • 18
  • 37