@defra/flood-map
v0.6.5
Published
Accessible map component
Downloads
179
Maintainers
Keywords
Readme
Flood map
Useful Links
Usage
Installation
Run:
npm i @defra/flood-mapClient Side Javascript
You will need to initialise flood map in your client side code:
import FloodMap from '@defra/flood-map';HTML
In your html, will need to add a map placeholder container
<div id="map"></div>And finally, if using buttonFirst or hybrid behaviour, a script tag to prevent the floodmap widget "flashing" on page load/reload.
<script>document.body.classList.add('fm-js-hidden')</script>GOVUK Prototype kit
To follow...
