simple Mapbox cluster map of csv data
JavaScript HTML CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
css
data
lib
Dockerfile
LICENSE
README.md
index.html

README.md

simple-csv-map

A simple Mapbox map of a simple csv file with headers ("First Name", "Last Name", "Home City", "Home State"). I did this for an internal map of Docker employees, and then generalized it a bit. It's very basic but you get the point.

Steps to get started:

  • Clone this repo
  • Get a Mapbox access token.
  • Replace the access token in config/config.js with your own.

    docker build -t your-username/some-map-name .
    docker run --name map -d -i -t -P your-username/some-map-name
    
  • If you're on Linux, point your browser at localhost/index.html
  • If you're on Windows or Mac, you are probably using Docker Machine. You'll need to determine your machine's ip address (docker-machine ls) and the port mapping for your container (docker port map).