README
@citydna/maps
City of Melbourne's mapping component library. Creates handy wrappers that manage map position and state for you, providing an easy hooks-based API for manipulating maps. Additionally, provides a deck.gl wrapper and API for layer management.
Usage
- add a
REACT_APP_MAPBOX_API_ACCESS_TOKEN=<YOUR_MAPBOX_TOKEN>
into your .env file. - Wrap your app with
<MapProvider>
at a minimum. - Start developing!
InteractiveMap StaticMap Popup Marker MapContext
- useUpdateMapViewport
- useMapViewport
- useMapRef
DeckGLWrapper DeckContext
- useDeckGL