Skip to content

FAIMS/faims3-map-input

Repository files navigation

faims3-map-input

Map based input widget for FAIMS3

NPM JavaScript Style Guide

Install

npm install --save @faims-project/faims3-map-input

Usage

import React, { Component } from 'react'
import { Field, Form, Formik } from 'formik';
import MapFormField from '@faims-project/faims3-map-input'

class Example extends Component {
  render() {
      return <Formik>
                <Form>
                  <Field name="circle" featureType="Circle" component={MapFormField} />
                </Form>
             </Formik>
  }
}

License

Apache2 © stevecassidy