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

How do I get my implementation of a NavigationServiceDelegate function to be called?

I'm building an iOS app with SwiftUI and am using Mapbox's NavigationViewController to provide turn-by-turn navigation instructions. I'd like to have custom code run when the visual instructions are updated in the navigation view, but my attempts at…
sw2500
  • 53
  • 2
  • 6
2
votes
0 answers

Mapbox Warning, maps-ios/ResourceOptions: Empty access token

I am using the MapBox sdk version 10.9.1 and I specifically do not want to declare my access token in info.plist I want to declare it programmatically. I have my token defined in AppDelegate.swift as: func application(_ application: UIApplication,…
ez4nick
  • 9,756
  • 12
  • 37
  • 69
2
votes
0 answers

SyntaxError with file in node_module Unexpected token, expected "," (4:7) when integrate rnmapbox/maps

I have integration rnmapbox/maps#main via repo github in iOS and have some error from node_module. I have create issues in github too via that link but if anyone face that issues before. Please feel free to help here. Thanks Image showing error when…
2
votes
0 answers

Mapbox iOS - loading 3D object within 3D building layer

Re-examining Mapbox's native SDK, it's clear that loading 3D models isn't as easy as Mapbox GL JS. I was able to show 3D buildings by adding layers from this example, as well as a 3D model using SceneKit. My goal is to add them into one layer to my…
Soheil
  • 325
  • 4
  • 19
2
votes
1 answer

Mapbox migrating to v10.1 offlineManager.loadStylePack does not complete or return any progress

Following migration example provided but loadStylePack never completes or returns the progress. At the same time, TileStore.default.loadTileRegion from the same example works and returns progress just fine. Has anyone run into the same problem any…
kos
  • 1,357
  • 9
  • 21
2
votes
1 answer

iOS MapboxMaps v10 and MapboxSearch SKD incompatibility issues

We have an iOS app that uses mapbox maps and mapbox search, and we are trying to port to v10 of mapbox maps. Our original cocoa podfile looked like this (all working fine): pod 'Mapbox-iOS-SDK' pod 'MapboxSearch', '= 1.0.0-beta.3' Following the…
Roche
  • 923
  • 7
  • 10
2
votes
0 answers

Pods are missing in Targets Xcode iOS

I'm working with MapBox Search API. To avail MapBox libraries - Create a new Project in Xcode Close that project and open that project folder in terminal Run pod init Add these to my Podfile - target 'MapBox' do use_frameworks! pod…
mefahimrahman
  • 197
  • 2
  • 6
  • 29
2
votes
1 answer

Mapbox on iOS - drawing icons dynamically according to attributes in source layer

Does anyone has a sample of implementation of dynamically drawing icons according to location and feature attributes in the source? I can not make it work. NSExpression is not giving the correct values, it looks like it is not reading the attributes…
2
votes
0 answers

MapBox Snap Map Cities boundaries update for SnapChat

I would like to know how we can contact Mapbox team to correct cities boundaries that are not correctly defined. We tried in Snap Map settings MapBox option but that redirects to their main website. Also we found its using openstreetmap and we…
Hitesh
  • 41
  • 1
2
votes
0 answers

Is there a PixiOverlay alternative for mapbox?

I'm developing 3 map-based apps - the first one is a web app (using React.js) and the others are Android and iOS apps (using mapbox). I'm using Leaflet library with mapbox tiles for the web app, and therefore we enjoy the plugins that Leaflet offers…
2
votes
1 answer

How do I combine Mapbox mgl_interpolate and MGL_Match in an NSExpression?

I'm having difficulty figuring out how to apply a match to contour index values in conjunction with different zoom levels using Swift in iOS to style different line widths, depending on the index value. Starting @ zoom level 9, lines with an index…
Stonetip
  • 1,150
  • 10
  • 20
2
votes
1 answer

Mapbox MGLAnnotations not rendering on MapView for Mapbox iOS

I have been testing out using MapBox for my SwiftUI application but I've run into issues where my annotations are not appearing on my MapView even though they appear to have been added. My code for my updateAnnotations command, which is called on…
Conrad Scherb
  • 896
  • 1
  • 6
  • 9
2
votes
0 answers

Is there a way to have a single icon along a way?

I'm using a MGLSymbolStyleLayer to render icons on a way on my mapbox instance on iOS. My problem right now is the frequency that icon is drawn: I tried all the values of MGLSymbolPlacement as value for styleLayer.symbolPlacement but none of them…
Wolf
  • 23
  • 2
2
votes
0 answers

Allow users to draw their own route

We are using Mapbox SDK iOS. We are wondering if there is a way to allow users to draw their own routes and save them. These routes will be for walking and will allow users to create their own routes. I've read a little about BYOR but there is…
Jim Kiely
  • 365
  • 2
  • 6
  • 24
2
votes
0 answers

Customize Mapbox style with layers in SwiftUI

I have an issue to customize a Mapbox view's style, like for instance adding some information on the map if a switch is switched on. Not sure if it's important, but the layers I need to add are MGLSymbolStyleLayer and MGLLineStyleLayer. Let's start…
Julien_Fr
  • 21
  • 4
1 2
3
16 17