Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions basic/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Basic example
---
## Basic example

Initialize a map with coordinates set by React, update the state of coordinates on map movement, and display that data in an element provided by the render function.

Expand All @@ -15,4 +14,10 @@ Initialize a map with coordinates set by React, update the state of coordinates

open http://localhost:3000/

### Access token

mapboxgl.accessToken = // YOUR_API_KEY_HERE

Replace the [API key](https://docs.mapbox.com/help/getting-started/access-tokens/) in `src/Map.js`.

Runs the app from http://localhost:3000
Loading