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

L.CircleMarker #120

Open
SergeyRyzhkov opened this issue Feb 8, 2017 · 4 comments · May be fixed by #207
Open

L.CircleMarker #120

SergeyRyzhkov opened this issue Feb 8, 2017 · 4 comments · May be fixed by #207

Comments

@SergeyRyzhkov
Copy link

Hi!
What about L.CircleMarker?

@prophe05
Copy link

+1

@ghost
Copy link

ghost commented Jun 14, 2017

I got L.CircleMaker to work by adding these lines of code to Leaflet.Editable.js
if (L.CircleMarker) {
L.CircleMarker.include(EditableMixin);
L.CircleMarker.include(MarkerMixin);
L.CircleMarker.addInitHook(keepEditable);
}

Then set markerClass to L.CircleMarker in your map's editOptions. i.e.
map = L.map('map', {editable: true, editOptions: {markerClass: L.CircleMarker}});

@mdj1
Copy link

mdj1 commented May 23, 2018

e cemorris !
Can you be more explicit ?
My goal is to use Leaflet.Editable.js with icons like
in use there:
http://tkrajina.github.io/leaflet-editable-polyline/example1.html
Can you tell me if you think this possible ?
Thanks.

@bytesnz
Copy link

bytesnz commented Nov 27, 2018

@mdj1 to do the same as the example you gave (in terms of the map), you just need to change the styling on the draggable markers. The example has an editable polyline in it. The thing that is does do differently from this plugin is create a temporary polyline for previewing the changes when you are dragging a polyline point to increase the performance (as you are not changing the original polyline)

@bytesnz bytesnz linked a pull request Mar 8, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants