Mapbox - React / NextJS working example

DEMO

This is an example of a project in NextJS using Mapbox.

At the moment you can do (without map rerendering)

  • Control Zoom
  • Control map center values
  • Add markers after map is loaded
  • Add markers when you click map
  • Get coordinates of clicked point on map

Next steps:

  • Allow markers removal

Usage

yarn && yarn dev