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
2
votes
2 answers

Get latitude and longitude in mapbox.js

I'm using mapbox.js to make a map with places on it. I'm just trying to get the map to return the right coordinates of a click, which I have managed successfully using the following code: map.on('click', function(e) { var latitude =…
danbrown
  • 165
  • 1
  • 8
2
votes
1 answer

Looping through GeoJSON items from GeoRSS with jQuery

I have a GeoRSS feed, that I am trying to parse with jQuery to create a geoJSON array that I can then add to a MapBox map with Leaflet. I think I have managed to turn the GeoRSS into GeoJSON ok, but then I just can;t seem to work out how to loop…
Tim
  • 45
  • 4
2
votes
3 answers

Cache mapbox Tile images

I used Mapbox on a project and now I want to improve the performance of it. Is it possible to cache the Mapbox Tile images? When I use my Mapbox map, I see request urls that look like this: http://b.tiles.mapbox.com/v3/{mapId}/13/4381/2564.png I…
ParisNakitaKejser
  • 12,112
  • 9
  • 46
  • 66
2
votes
1 answer

Reset all my markerLayer in Mapbox

i use Mapbox as a map to show company geoLoc on, my code is var markerLayer = L.mapbox.markerLayer({ type: 'Feature', geometry: { type: 'Point', coordinates: [value.GeoLng, value.GeoLat] }, properties: { title: 'A…
ParisNakitaKejser
  • 12,112
  • 9
  • 46
  • 66
2
votes
1 answer

Trouble using Leafletjs MarkerClusterGroup and filters with Mapbox

I've tried Mapbox and their API to create an interactive map. The purpose is to fetch points in a geojson file, and display them on the map. They have to be filtered by their marker-icon and grouped depending on the zoom applied. I had no trouble…
Mat_
  • 61
  • 1
  • 7
2
votes
2 answers

TileOverlay issue

So, when I use my MapBox maps, the Tiles are overlaid OVER my polylines and polygons, so they cannot be seen. Is there any way to modify this behavior? This is the code I'm using: public class MapBoxOnlineTileProvider extends UrlTileProvider { …
Charlie-Blake
  • 10,832
  • 13
  • 55
  • 90
2
votes
1 answer

Can iOS MapBox use rectangle offline map in .mbtiles?

I'm trying to make an offline map using iOS MapBox SDK. It's easy to make square map (eg. 32x32 tiles) but for some reason it doesn't work when I try to make rectangle map (eg. 40x32 tiles). It loads but it shows only a small portion of the map or…
martin
  • 93,354
  • 25
  • 191
  • 226
2
votes
2 answers

iOS and Maps: How to intercept a touch gesture, get the coordinates and retrieve the country name

I am developing a game in which the user has to select a country on a world map. I was thus wondering: what's the best approach to show an interactive map? I found this framework/component on the Web http://mousebird.github.com/WhirlyGlobe/ but I…
pAkY88
  • 6,262
  • 11
  • 46
  • 58
2
votes
2 answers

loading GeoJSON markers into MapBox

I'm trying to figure out how to load GeoJSON list on lon/lat coordinates into a MapBox map. I think I'm close, I just can't seem to get it actually working. I have a demo page set up here: http://sandbox.charliehield.com/mapbox/ Here's the GeoJSON…
stursby
  • 871
  • 2
  • 12
  • 23
2
votes
1 answer

Mapbox.js: add markers from a CSV file?

I'm getting to grips with mapbox.js. I have a CSV file of points that I would like to add as markers. My CSV file looks like this: event,lat,lon,title,num_people arson,47.14,8.01,Company 1,2 arson,46.68,9.50,Company 2,120 …
Richard
  • 62,943
  • 126
  • 334
  • 542
2
votes
1 answer

Mapbox no longer work with Leaflet

I have been using Mapbox together with Leaflet for quite some time. Recently, the Mapbox maps stopped loading. What happened? Here's the .js code thats used to load Mapbox's tiles: var map = new L.map('map', { center: new L.LatLng(42.352455,…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
2
votes
2 answers

Disable mouse wheel zoom in Mapbox maps?

How can I disable mouse wheel zoom on Mapbox maps? I am trying to create a simple map, as per the simple example: mapbox.auto('map', 'examples.map-vyofok3q'); The Mapbox docs say that you can supply an extra eventhandler argument when you create…
Richard
  • 62,943
  • 126
  • 334
  • 542
2
votes
2 answers

Mapbox - strange white line in layers

I'm embedding a mapbox map - what I found is that a blank line is put in the middle of the map, as you can see from the attached image. Does anyone know what the problem is? I'm using twitter-bootstrap framework too. and this is the map div…
itsme
  • 48,972
  • 96
  • 224
  • 345
2
votes
2 answers

Insert Mapbox in Facebook App

I'm trying to create a Facebook App that use a Mapbox Map, but in my first test I found a problem, js error console: [blocked] The page at https://xxx-7388.herokuapp.com/?fb_source=appcenter&fb_appcenter=1#/games ran insecure content from…
2
votes
1 answer

displaying mapbox maptiles in android using osmdroid

I have tried to retrieve map tiles from mapbox using osmdroid just like how modestmaps.js do( ex: http://tristen.ca/mm-examples/basic-controls.html) i have tried in all possible ways no use, can any one pls guide me how to write my own…
wmmb412
  • 21
  • 1
1 2 3
99
100