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

Mapbox iOS: MGL_IF Expression

I want to color my MGLSymbolStyleLayer feature icons based on multiple if conditions, which requires the use of MGL_IF, but I'm getting this runtime error: 'Unable to parse the format string...' projectsLayer!.iconColor = …
1
vote
2 answers

xcode bug deployment target

I am trying to implement mapbox Vision SDK. I set deployment target 11.2, also in pod file 11.2 but I get error Compiling for iOS 9.0, but module 'MapboxVision' has a minimum deployment target of iOS 11.2: How to resolve this?
kacerac
  • 93
  • 9
1
vote
1 answer

Function for when map is interacted with

I was wondering if there is an inbuilt function that is called whenever a map box map is interacted with? I’m wondering this because I want to have an image appear whenever the map is moved. Thanks
user12728337
1
vote
1 answer

Anchoring custom views to existing view in Mapbox NavigationViewController in Swift

I'm using the Mapbox framework on iOS in Swift to create a custom NavigationViewController. I need help getting a reference to the FloatingStackView on the NavigationView. I've added an additional button (see top left of screenshot) and I'd like to…
Tommy
  • 115
  • 1
  • 10
1
vote
0 answers

Mapbox Geocoder framework not found

My project is build in Objective c. My podfile is as below: platform :ios, '9.0' target 'Traget1' do use_frameworks! pod 'GooglePlaces' pod 'Mapbox-iOS-SDK', '~> 5.1' pod 'MapboxGeocoder.swift', '~> 0.11' end target 'Traget2' do …
Aakil Ladhani
  • 984
  • 9
  • 32
1
vote
1 answer

MGLSymbolStyleLayer text not showing

I successfully added an MGLSymbolStyleLayer layer to my map and configured its look by data from GeoJSON that's loaded locally, but I'm unable to set the value for text property. This is how I'm trying to do it inside mapView(_ mapView: MGLMapView,…
Uranus
  • 53
  • 2
  • 4
1
vote
1 answer

How to add "greater than sign" line styles using mapbox-ios (example :>>>>)

I need a pointing line to tell someone the order of a line. I added the dotted line style using MGLLineStyleLayer from mapbox-ios (example: - - - -) But I don't know if it supports the (>>>>) style, or the arrow (--->---), please tell me what to do.
Calm
  • 70
  • 8
1
vote
1 answer

MapboxGL Native on iOS: Get MGLPointFeature on tap

I have my own custom subclass of MGLPointFeature. I create a source for my instances like so: let myAnnotations: [MySubclassType] = /* code that generates those annotations */ let source = MGLShapeSource(identifier: "some_identifier", …
Georg
  • 3,664
  • 3
  • 34
  • 75
1
vote
1 answer

Mapbox extrusions show in Android but not iOS

I have a Mapbox map style created in Studio to which I have added extrusion layers. These appear in my app on Android, but not in iOS. I did not change anything in the app to make them appear. I'm using the Mapbox iOS framework 4.9 - as far as I can…
Clyde
  • 7,389
  • 5
  • 31
  • 57
1
vote
1 answer

Different icon for every feature in Feature Collection

I have feature collection geojson. I want to set each of them different icon base to their attributes. But i could not find how. For now i just can set one image for just all layer. Is it possible to set each of feature different icon? func…
burak kaya
  • 105
  • 1
  • 1
  • 6
1
vote
1 answer

iOS: MapboxNavigationNative was compiled with optimization - stepping may behave oddly;

We are facing MapboxNavigationNative was compiled with optimization - stepping may behave oddly; issue when we using navigation for about 10 to 20 mins. Kindly help us to overcome this issue. After seeing many SO posts, I put all Optimization…
Sridhar
  • 2,228
  • 10
  • 48
  • 79
1
vote
1 answer

Load WMS service, the url is too long to get data

Load WMS service, the url is too long to get data Load a WMS service, do not add "CQL_FILTER" parameter can request to the data, add "CQL_FILTER" parameter can not get, who can help me to analyze it? Thank you very…
Calm
  • 70
  • 8
1
vote
0 answers

Use existing offline raster mbtiles to display on mapbox map

I'd like to transition the map in my app from currently Apple-Maps-SDK to Mapbox. My users already downloaded a lot of offline maps into several .mbtiles tiles containing raster data. My question now is if it's possible to still use those while the…
Georg
  • 3,664
  • 3
  • 34
  • 75
0
votes
0 answers

Cannot find 'ResourceOptions' in scope

I am trying to make a simple mapbox map iOS app. I followed the installation guide (triple checking the netrc file) and copy pasted the "Display a simple map view" example. I get the error "Cannot find 'ResourceOptions' in scope". See the code…
MaisieLz
  • 1
  • 1
0
votes
1 answer

Mapbox SDK v10 on vector tiles / custom interceptor don't work

I am trying to setup own instance of interceptor for MapboxSDK v10 using Xamarin.iOS. public class MyMBXHttpServiceInterceptor : IMBXHttpServiceInterceptorInterface { public IntPtr Handle { get; set; } = IntPtr.Zero; public…
boski
  • 1,106
  • 3
  • 21
  • 44