UNPKG

leaflet-styleeditor

Version:

Edit the style of features drawn within Leaflet.

18 lines (15 loc) 517 B
import 'leaflet' /** Form used to enable modification of a Geometry */ export default function setupMarkerForm () { L.StyleEditor.forms.MarkerForm = L.StyleEditor.forms.Form.extend({ options: { formOptionKey: 'marker', formElements: { 'icon': L.StyleEditor.formElements.IconElement, 'color': L.StyleEditor.formElements.ColorElement, 'size': L.StyleEditor.formElements.SizeElement, 'popupContent': L.StyleEditor.formElements.PopupContentElement } } }) }