Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with React #184

Open
hanselsen opened this issue Jan 14, 2019 · 1 comment
Open

Using with React #184

hanselsen opened this issue Jan 14, 2019 · 1 comment

Comments

@hanselsen
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants