0.0.1 • Published 3 years ago

leaflet-text-editable v0.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

Leaflet-Text-Editable

This plugin adds support for editing leaflet-text geometries throug Leaflet Editable.

Demo

See the following examples for demonstration:

Install

$ npm install leaflet-text-editable

Quickstart

import 'leaflet-text-editable'

const map = L.map('map').setView([52.5069,13.4298], 15);

//...

map.whenReady(function() {
  const label = 'Headline'
  const text = '12:00 | Alexanderplatz\n„Alle gegen Alle“'
  const bounds = L.latLngBounds([52.50998775888057,13.444347381591799],[52.50611297738362,13.427524566650392]);
  L.svgLabelledTextBox(bounds, label, text).addTo(map)
});