mithril-ui-form-leaflet-plugin
v0.5.8
Published
Plugin to add a Leaflet-based map component to Mithril-UI-Form.
Downloads
98
Maintainers
Readme
A map plugin for Mithril-ui-form
Mithril-ui-form is a declarative framwork to create forms using the front-end Mithril framework and mithril-materialized components using the materialize-css design theme.
Originally, the map component was included by default, and you needed to import Leaflet and Leaflet-draw even when not using a map. Recent versions (v1.0.0+) have removed support for the leaflet map component, so you need to include it manually yourself.
import { leafletPlugin } from 'mithril-ui-form-leaflet-plugin';
...
registerPlugin('map', leafletPlugin);