Questions tagged [mapbox]

Mapbox is a location data platform for mobile and web applications. They provide building blocks to add location-based features such as maps, search, and navigation into any experience you create.

Mapbox is built on a platform of live-updating global data. Their secure data pipeline processes over 250 million miles of anonymized traffic data per day. Through apps powered by Mapbox, including Bosch, Snap, Lonely Planet, Tableau, Red Bull, DoorDash, The Weather Channel, and Hotels.com, they reach more than 520 million people each month.

Mapbox was born out of Development Seed and the necessity to build new tools and platforms for positive impact projects including those with The World Bank, United Nations, The Red Cross and other NGO and not-for-profit organizations. Since 2010, they have quickly expanded their offering of mapping and location-based APIs and SDKs to offer many tools for developers who want to build with maps.

Developer documentation and resources:

Troubleshooting:

Related tags:

6499 questions
23
votes
10 answers

How to remove MapBox logo from bottom left corner?

I'm embeding a MapBox map in my html page via mapbox.js script like so: L.mapbox.accessToken = 'pk.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxx'; var map = L.mapbox.map('map', 'xxxxx.xxxxxxxx', { zoomControl: false }); This…
lateo
  • 343
  • 1
  • 2
  • 6
22
votes
3 answers

Mapbox tiles and Leafletjs

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…
twg_
  • 995
  • 2
  • 7
  • 15
21
votes
7 answers

Message from debugger: Terminated due to memory issue

My app working with Geojson file. I use MapBox SDK to add MGLPolyline to map. But the problem is my file too large, so that the app crash and got the error: Message from debugger: Terminated due to memory issue. I faced with 66234 objects at first…
lee
  • 7,955
  • 8
  • 44
  • 60
21
votes
3 answers

Real time vector-based OSM renderer in iOS (using OpenGL ES)

I'm looking into a solution that will allow to use OpenStreetMap data to render a 2D top-view vector-based map in iOS, instead of using pre-rendered tiles from a server. Similar to Apple and Google Maps in iOS6+. I've done extensive research on this…
Calin
  • 2,110
  • 1
  • 21
  • 36
20
votes
4 answers

mapbox gl change icon color

Is there a way to change a mapbox-gl-js icon-image color? This code taken from https://www.mapbox.com/mapbox-gl-js/example/geojson-markers/ won't change the marker color to red map.addLayer({ "id": "markers", "type": "symbol", "source":…
jordi
  • 3,391
  • 2
  • 14
  • 14
20
votes
4 answers

Using Mapbox GL Offline

Is there a way to use Mapbox GL (asking about both JS and native) in an offline setting? With MBTiles, you could use either the MBTiles file or extract the raster images. I'm wondering if there's anything similar that would allow Mapbox GL to load…
Trevor
  • 301
  • 1
  • 2
  • 4
19
votes
8 answers

Cocoapods - Error installing Mapbox-iOS-SDK

I want to install last version of Mapbox with Cocoapods. I configure .netrc file : machine api.mapbox.com login mapbox password But when I launch pod install, I have this error : [!] Error installing Mapbox-iOS-SDK [!]…
BSK-Team
  • 1,750
  • 1
  • 19
  • 37
19
votes
2 answers

Mapbox: is it possible to update layer hierarchy?

I have a Mapbox with my own layers, says labels of towns and landmarks... say I want to highlight one specific landmark and I want to move its z-index higher because otherwise, it would overlap with some other elements... Can I use…
Francesco
  • 24,839
  • 29
  • 105
  • 152
19
votes
5 answers

How to remove all layers and features from map?

I am working on a map and I would like to remove all features from the map on a certain event. The features are in multiple layers which are plotted dynamically. Some of the code is: $.getJSON('distributor-companies', function (data) { …
Rohan
  • 13,308
  • 21
  • 81
  • 154
18
votes
2 answers

Mapbox GL js available icons

I am rewriting a web application from Mapbox.js to Mapbox GL js. Using the standard 'mapbox://styles/mapbox/streets-v8' style, where can I find a list of all working marker icons? Here is my code: m.map.addSource("markers", { "type":…
the_web
  • 406
  • 1
  • 4
  • 11
18
votes
5 answers

Use a custom created Mapbox style (from Mapbox Studio) along with Leaflet

I can't find any examples for how to use custom created Mapbox map-styles. On the Mapbox page I created a style for a map. How can I use this style with Leaflet? For example: var map = L.map('map', { center: [43.64701, -79.39425], zoom:…
F.H.
  • 1,456
  • 1
  • 20
  • 34
18
votes
1 answer

drawing circle with radius specified in meters on a map

Any pointers on how to draw a circle of radius, specified in meters, on top of a geographical map using D3 would be pretty helpful. I tried to use Leaflet and it's Circle(or CircleMarker) that accepts radius in meters, but I need more flexibility to…
Bala
  • 323
  • 1
  • 2
  • 6
17
votes
3 answers

Blank map tiles - Error 410 gone (Mapbox & Leaflet JS)

I am using Leaflet JS and MapBox to create a map. My browser displays as below: The map does not show at all, my map tile is blank. The errors that I get in the dev tools console is: GET…
myverdict
  • 622
  • 8
  • 24
17
votes
6 answers

MapBox markers Move on zooming

I'm working on MapBoxgl and I want to add several markers. Here is my index.html:
Mahdi
  • 664
  • 3
  • 15
  • 35
17
votes
2 answers

Mapbox markers not respecting zindex

In a mapbox application that I am building, I am loading multiple markers onto the page depending on the users geolocation, the problem is though that I need certain markers to be above others, but the markers are not respecting the zIndex that I…
Elias Nichols
  • 183
  • 1
  • 7