0.5.3 • Published 9 months ago
mithril-ui-form-leaflet-plugin v0.5.3
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);