项目作者: clintmcmahon

项目描述 :
React + Mapbox example using React hooks to display Minnesota's eight congressional districts
高级语言: JavaScript
项目地址: git://github.com/clintmcmahon/react-mapbox-example.git
创建时间: 2020-04-22T02:11:59Z
项目社区:https://github.com/clintmcmahon/react-mapbox-example

开源协议:

下载


React + Mapbox Example

React + Mapbox example to display Minnesota’s eight congressional districts. This project is an example of how to display data in geojson format in Mapbox utilizing React hooks. This project is also bootstrapped with Create React App.

Usage

Create a Mapbox user account and Mapbox API token at Mapbox

Clone the repository to your local machine

Add your Mapbox API Token to the global variable in the .env file

  • REACT_APP_MAPBOX_KEY=YOUR_MAPBOX_KEY

Install node modules

  • npm install

Run the project

  • npm start a new browser window will appear running the project.