bluehalo / ngx-leaflet-draw

MIT License
88 stars 29 forks source link

How to use leafletdrawlocal? #151

Closed sgrillon14 closed 2 months ago

sgrillon14 commented 2 months ago

I see https://github.com/bluehalo/ngx-leaflet-draw?tab=readme-ov-file#leafletdrawlocal but the sample is not full

sgrillon14 commented 2 months ago

it work when add [leafletDrawLocal]="drawLocal"

<div leaflet style="height: 400px;"
     leafletDraw
     [leafletOptions]="options"
     [leafletDrawOptions]="drawOptions"
     [leafletDrawLocal]="drawLocal"
     (leafletDrawCreated)="onDrawCreated($event)">

    <div [leafletLayer]="drawnItems"></div>

</div>