Leaflet / Leaflet.Editable

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

Using with React #184

Open hanselsen opened 5 years ago

hanselsen commented 5 years ago

I'm using leaflet-react in combination with Leaflet.Editable and it's working great except the fact that I can't seem to figure out how to pass editOptions to the Map.
This is my React code:

<LeafletMap
    editable
    editOptions={{skipMiddleMarkers: true}}
    center={[52.083050, 5.321159]}
    maxZoom={21}
    ref={r => this.setMap(r)}
    zoom={8} />
this.circle.enableEdit(this.map);

Whatever what I try, I can't seem to remove the middle marker. Is this a bug or am I missing something?

bhautik11 commented 5 years ago

@hanselsen Can you share sample code. How you had integrated react-leaflet with Leaflet.Editable.