mapbox

Mapbox tiles and Leafletjs

喜夏-厌秋 提交于 2019-12-02 16:21:39
I'm trying to load some additional tile layers on my map but I can't quite figure it out. The ones that I currently have I only have thanks to someone that provided a tutorial but didn't say what the other tile options were. Can someone help me with this? var mapboxUrl = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}'; var accessToken = 'mySuperSecretToken'; var grayscale = L.tileLayer(mapboxUrl, {id: 'mapbox.light', attribution: '', maxZoom: 20, accessToken: accessToken}), streets = L.tileLayer(mapboxUrl, {id: 'mapbox.streets', attribution: '', maxZoom: 20,

MapBox navigation pod unable to install with ObjectiveC where i am using Xcode 9.2

霸气de小男生 提交于 2019-12-02 16:09:34
问题 we are unable to install pod for mapbox navigation. Please help me we are follow the mapbox navigation documentation step by step . We are successfully install the pod 'MapboxNavigation' When i am using swift language with Xcode 9.2 But when we go through language ObjectiveC with same Xcode9.2 version, we are unable to install the pod.. the issues are given in the screen shoot. 回答1: Refer to the Github project, MapBox supports Xcode 9 and swift 4, maybe the website documentation is outdated.

IBOutlet variables return nil when I try to access them. Error: Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value

只愿长相守 提交于 2019-12-02 13:20:53
I have a UIViewController that implements MGLMapViewDelegate . I'm trying to place a nav bar at the top, with two buttons. I couldn't get my buttons or nav bar visible so I tried using the function view.bringSubviewToFront() within my viewDidLoadFunction() as suggested on this post When I did this, I received the error Error: Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value I don't understand how the IBOutlet variables can ever be nil, I thought they were assigned to the storyboard buttons My ViewController Class(At least the parts that I think are important)

Command PhaseScriptExecution failed with a nonzero exit code when using Mapbox

给你一囗甜甜゛ 提交于 2019-12-02 13:07:20
I have had the bellow error for some time now. I have tried creating new projects fixing the problem within the project Resetting all cocoa pods and more And yet I have still not been able to get rid of this error. Error below: /Users/myUsername/Desktop/MapboxMap117/Pods/Target Support Files/Pods-MapboxMap117/Pods-MapboxMap117-frameworks.sh: line 114: local: `/Users/myUsername/Desktop/MapboxMap117/Pods/Mapbox-iOS-SDK/dynamic/826E141E-8875-3C3B-A106-2B772F8A0684.bcsymbolmap': not a valid identifier Command PhaseScriptExecution failed with a nonzero exit code I am also getting : (dont know if it

Unable to generate build with pro guard enabled using Mapbox SDK 6.7

喜欢而已 提交于 2019-12-02 11:24:44
问题 Mapbox SDK: 6.7.0 After enabling the proguard in the gradle, we are getting the following error. com.mapbox.services.android.location.LostLocationEngine: can't find superclass or interface com.mapbox.services.android.telemetry.location.LocationEngine com.mapbox.services.android.location.MockLocationEngine: can't find referenced class com.mapbox.services.android.telemetry.location.LocationEngine$Type I have used LocationComponent, LocationEngine and LocationEngineProvider classes in my

MapBox navigation pod unable to install with ObjectiveC where i am using Xcode 9.2

心不动则不痛 提交于 2019-12-02 10:30:14
we are unable to install pod for mapbox navigation. Please help me we are follow the mapbox navigation documentation step by step . We are successfully install the pod 'MapboxNavigation' When i am using swift language with Xcode 9.2 But when we go through language ObjectiveC with same Xcode9.2 version, we are unable to install the pod.. the issues are given in the screen shoot. Refer to the Github project , MapBox supports Xcode 9 and swift 4, maybe the website documentation is outdated. Thanks to Mapbox i got it solution , we can go through the Carthage ,we have no problem with objective c in

Is it possible to make MGLPolyLines selectable? - Swift, MapBox

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 09:56:33
Is it possible to make an MGLPolyLine touchable/selectable/have user interaction? In my project, the user needs to touch the polyline. There was this question asked before but it is outdated by about 2 years. Have they (MapBox) updated this? I've just checked back and it looks like this has been implemented though I'm not sure which Mapbox release rolled this out. If you take a look at the simple Mapbox example, Annotation Models , that demos an MGLPolyline and interspaced circular annotations, you can make a simple mod to the supplied code and see for yourself. The demo looks like this: If

Leaflet Circle radius changing dependant on y/lng coords

守給你的承諾、 提交于 2019-12-02 06:52:36
问题 I am using mapbox/leaflet to display a picture of a human body rather than a regular map. I am using leaflet draw and I need to be able to create a circle and move it around while maintaining its radius. However, when I move it towards the bottom of the map/screen, the size increases exponentialy. I want it to stay the same size. I assume it's something to do with projection or CRS but I'm not sure what to do to stop it. My code is : var mapMinZoom = 0; var mapMaxZoom = 4; var map = L.map(

Loading geojson markers into mapbox setting custom icon image

我们两清 提交于 2019-12-02 03:54:16
I'm new to mapbox/leaflet and I think it's a pretty basic problem I'm fighting the last two days and though I've tried several ways I can't wrap my head around it. I'm loading markers via geojson: var ma_3 = L.mapbox.featureLayer().loadURL('./data/marathon/marker3x.geojson'); and then try to change properties like size or color according to the title used in the geojson data: ma_3.on('ready', function(layer) { this.eachLayer(function(marker) { if (marker.toGeoJSON().properties.title === 'Verpflegung') { marker.setIcon(L.mapbox.marker.icon({ "marker-size": 'large' })); } else { marker.setIcon(L

Mapbox: How to avoid JavaScript errors for tilesets that aren't available at the current zoom level?

懵懂的女人 提交于 2019-12-02 01:13:51
问题 I'm using Mapbox GL JS and loading tileset layers from my Mapbox account. Some of these tileset layers are only available for zoom levels 10 to 15. The default zoom level of my map is 5, and when I load the map I get a JavaScript console error, saying that the tileset is 404ing: Is there any way I can avoid this? I don't want to recreate the tileset all the way to zoom level 5, as it will unnecessarily increase its size. I don't think the console error is causing any problems in Chrome, but I