Leaflet.Editable icon indicating copy to clipboard operation
Leaflet.Editable copied to clipboard

L.CircleMarker

Open SergeyRyzhkov opened this issue 8 years ago • 4 comments

Hi! What about L.CircleMarker?

SergeyRyzhkov avatar Feb 08 '17 20:02 SergeyRyzhkov

+1

prophe05 avatar Mar 11 '17 06:03 prophe05

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}});

ghost avatar Jun 14 '17 20:06 ghost

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.

mdj1 avatar May 23 '18 17:05 mdj1

@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 avatar Nov 27 '18 16:11 bytesnz