Leaflet / Leaflet.Editable

Make geometries editable in Leaflet.
http://leaflet.github.io/Leaflet.Editable/doc/api.html
553 stars 198 forks source link

How to use in angular #183

Open novakand opened 5 years ago

novakand commented 5 years ago

How to use in angular, how to make an import? The map script is dynamically loaded.

jhoppenstedt commented 5 years ago

Hi novakand, I got it running using the following imports:

import * as L from 'leaflet';
import 'leaflet-editable';

Still, tslint takes some time recognizing e.g. L.Editable but it seems to work. Unfortunately, some type definitions like function definitions for startCircle() or startRectangle() seem to be missing.

Kind regards