0.6.3 • Published 8 months ago

@defra/flood-map v0.6.3

Weekly downloads
-
License
OGL-UK-3.0
Repository
-
Last release
8 months ago

Flood map

Useful Links

Usage

Installation

Run:

npm i @defra/flood-map

Client 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...

0.6.3

8 months ago

0.6.2

8 months ago

0.6.1

9 months ago

0.6.0

9 months ago

0.5.2

9 months ago

0.5.1

9 months ago

0.5.0

9 months ago

0.4.0

10 months ago

0.3.0

11 months ago

0.2.1

11 months ago

0.1.0

11 months ago