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

Detect when a ShapeSource finished loading its url GeoJson data in react-native

I'm using the react-native-mapbox-gl/maps library in my react-native app, and I'm trying to show a
Victor
  • 5,043
  • 3
  • 41
  • 55
1
vote
0 answers

Custom SVG not shipping with Mapbox style, unable to add pattern to MGLBackgroundStyleLayer

func mapView(_ mapView: MGLMapView, didFinishLoading style: MGLStyle) { if let land = style.layer(withIdentifier: "land") { let canvas = MGLBackgroundStyleLayer(identifier: "canvas") //canvas.backgroundColor =…
lurning too koad
  • 2,698
  • 1
  • 17
  • 47
1
vote
0 answers

MGLSymbolStyleLayer has text can't show when offline

I successfully added an MGLSymbolStyleLayer layer to my map. the layer include image and text. The layer can't show when offline. MGLSymbolStyleLayer *lay = [[MGLSymbolStyleLayer alloc] initWithIdentifier:@"location_spot" source:source]; CGVector…
Xinboy
  • 71
  • 6
1
vote
0 answers

add UIImage to mglmapview using MGLStyleLayer+MGLImageSource shows garbage on map

I am showing geo-referenced images on an mglmapview using an MGLStyleLayer created with an MGLImageSource that specifies a UIImage that has a height of 3000. The MGLStyleLayer is added to the map using [map.style insertlayer ...]; This is working…
Bruce
  • 116
  • 1
  • 8
1
vote
0 answers

MapBox gradient polyline track - crash when scaling the map

The gradient polyline of the track is rendered normally, but a crash occurs when the map is zooming. the monochrome track line works correctly. What could be the problem? private func addPolyline() { if (mapView?.style?.source(withIdentifier:…
1
vote
0 answers

Free Driving Mode - Mapbox

I am trying to make a passive navigation system 'free driving mode', I've looked everywhere including the docs and have no idea how to move forward with the 'PassiveLocationManager'…
Bradley Cable
  • 33
  • 1
  • 7
1
vote
1 answer

How to use bundled fonts in Mapbox iOS SDK?

I'm using Mapbox iOS SDK 6.2.0-beta.2 and it doesn't load the custom fonts we serve on our tile server. In order to expedite our iOS 14 preparation I'm trying to make Mapbox use locally available fonts, but I can't find a good example. The docs are…
Behdad
  • 941
  • 12
  • 23
1
vote
0 answers

I can't see the annotation I added. What's wrong with it?

I don't know why the marker is not displayed.. I am using Mapbox version 6.0.0 annotationView class // Create a subclass of MGLUserLocationAnnotationView. class CustomUserLocationAnnotationView: MGLAnnotationView { var imageView: UIImageView! …
Park
  • 401
  • 4
  • 10
1
vote
1 answer

Snap to Roads using Mapbox

I'm currently looking for the Mapbox Snap to Roads API the same as Google map Snap to Roads API. Is there any Mapbox APIs the same as Google map Snap to Roads?
Bunlong
  • 652
  • 1
  • 9
  • 21
1
vote
1 answer

Trouble installing Mapbox

I am trying to install the Mapbox SDK for an iOS app I am creating. However, I'm running into a slew of errors. I have tried downloading the SDK without any third party apps. However, this gave a "Command PhaseScriptExecution failed with a nonzero…
Rohan Singh
  • 461
  • 2
  • 5
  • 20
1
vote
1 answer

Mapbox Android SDK - querySourceFeatures at a given coordinate

I use Mapbox Tileset API and generated a custom tileset (it's a huge 400MB of GeoJSON data) uploaded to Mapbox servers, and added to our style in the studio as a custom fill layer. This way I can show our custom areas (as polygons) of the world with…
Peter
  • 748
  • 6
  • 20
1
vote
1 answer

MGLSymbolStyleLayer "iconRotation" animation

is it possible to animate my marker rotation using MGLSymbolStyleLayer's iconRotation property ? or is there any other way to rotate my marker smoothly ? I just want to rotate my marker smoothly , as of now the rotation is fine but it is quite…
1
vote
1 answer

React Native Mapbox GL: MarkerView component is missing

I hope this is the right place to ask. I'm developing a react-native-mapbox-gl/maps app on Windows 10, and the MarkerView component just isn't showing up. Here's the App.js code for reference: import React, { Component } from 'react'; import { …
1
vote
0 answers

Pass defined language to mapbox navigation class with React Native & Swift

Im trying to create a Mapbox navigation component with React Native. So my question is whats the best way to implement it via the React Native Component? All help is appreciated. Thanks RN Component var navDemo = NativeModules.NavDemo; …
bmilagre
  • 11
  • 3
1
vote
1 answer

Mapbox iOS Navigation SDK Not Working With SwiftUI

I'm getting the error: Type 'NavView' does not conform to protocol 'UIViewRepresentable' Here is my code. What should I do? Thanks. Using SwiftUI struct NavView: UIViewRepresentable{ func makeUIView(context: Context) ->…
A4_TS
  • 130
  • 1
  • 14