Advanced tooltips for Leaflet.
Styles & content tooltip content is sanitized with sanitize-caja linkified with linky, and formatted into elements of your choice.
Editing interface the edit
tab turns property/value combinations into
an editable table.
gjLayer.on('click', metatip(map).config({
fields: {
name: {
elem: 'h1'
}
}
}));
Create a metatip event handler, suitable as a click
handler on a Leaflet
layer.
Configure the metatip handler with field definitions of the form
{
fieldname: {
// one of h1, h2, h3, span, p, img, a, pre
elem: 'elementtype'
}
}
In which event
is one of del
, save
, config
, and the handler accepts
a data object.