Map-i-fying data using MapBox

Published Feb 20, 2017
Map-i-fying data using MapBox

What is MapBox?

Have you ever felt like Google maps seems somewhat dull as a mapping platform? Worry not — Mapbox is coming to the rescue! I came across Mapbox last week during a hackathon and thought I'd give it a shot. I loved its map creating platform (i.e. Mapbox Studio)! In this post we will discuss how to create a simple data based map on MapBox studio.

What are you waiting for?

  1. Grab the accident dataset here . Remember that the dataset should always have Latitude and Longitude columns in order to be read by mapbox.

  2. Get registered on Mapbox

  3. Open the Mapbox studio by clicking the studio button at top right.

  4. Click on 'Tileset' (on left hand menu), click on 'New Tileset', and upload the file(lat_lon.csv).

  5. Wait for the new tileset to be created. Next, click on the 'options' button for the created tileset and select add to style.

  6. Choose a style that suits you and be sure to rename the style being saved.

  7. You will then be taken to a the map editor. Click on 'Create layer' to confirm the creation of a layer from your data. You can add, remove, hide, and show different map features by using the left hand side layers list.

  8. Select your data layer, click on style options for the layer, and edit to your chosing.(You can change colors, sizes, blur, and opacity of data points manually or you can add functions to do so).

  9. Once you are finished, click on 'publish' and voila! It's finished!

You can then access the published style from here. Click on the 'options' button for your style and select '</> Share, Develop and use'. From this page, you can get your shared URL for public access and your style url-access token pair for API integration.

Check out my map here and be sure to zoom in around Leeds (UK)

Leeds map

Here are a few links you might find useful!

Additionally, if you're interested in learning more about other mapping tools, check out Google Maps API or Leaflet: What's Best for your Project? by Victor Gerard Temprano!

I am always available to answer any questions you may have at Abhay447!

Discover and read more posts from Abhay Chaturvedi
get started