You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
276 KiB

2 years ago
{"ast":null,"code":"/*\n Leaflet.draw 1.0.4, a plugin that adds drawing and editing tools to Leaflet powered maps.\n (c) 2012-2017, Jacob Toye, Jon West, Smartrak, Leaflet\n\n https://github.com/Leaflet/Leaflet.draw\n http://leafletjs.com\n */\n!function (t, e, i) {\n function o(t, e) {\n for (; (t = t.parentElement) && !t.classList.contains(e););\n\n return t;\n }\n\n L.drawVersion = \"1.0.4\", L.Draw = {}, L.drawLocal = {\n draw: {\n toolbar: {\n actions: {\n title: \"Cancel drawing\",\n text: \"Cancel\"\n },\n finish: {\n title: \"Finish drawing\",\n text: \"Finish\"\n },\n undo: {\n title: \"Delete last point drawn\",\n text: \"Delete last point\"\n },\n buttons: {\n polyline: \"Draw a polyline\",\n polygon: \"Draw a polygon\",\n rectangle: \"Draw a rectangle\",\n circle: \"Draw a circle\",\n marker: \"Draw a marker\",\n circlemarker: \"Draw a circlemarker\"\n }\n },\n handlers: {\n circle: {\n tooltip: {\n start: \"Click and drag to draw circle.\"\n },\n radius: \"Radius\"\n },\n circlemarker: {\n tooltip: {\n start: \"Click map to place circle marker.\"\n }\n },\n marker: {\n tooltip: {\n start: \"Click map to place marker.\"\n }\n },\n polygon: {\n tooltip: {\n start: \"Click to start drawing shape.\",\n cont: \"Click to continue drawing shape.\",\n end: \"Click first point to close this shape.\"\n }\n },\n polyline: {\n error: \"<strong>Error:</strong> shape edges cannot cross!\",\n tooltip: {\n start: \"Click to start drawing line.\",\n cont: \"Click to continue drawing line.\",\n end: \"Click last point to finish line.\"\n }\n },\n rectangle: {\n tooltip: {\n start: \"Click and drag to draw rectangle.\"\n }\n },\n simpleshape: {\n tooltip: {\n end: \"Release mouse to finish drawing.\"\n }\n }\n }\n },\n edit: {\n toolbar: {\n actions: {\n save: {\n title: \"Save changes\",\n text: \"Save\"\n },\n cancel: {\n title: \"Cancel editing, discards all changes\",\n text: \"Cancel\"\n },\n clearAll: {\n title: \"Clear all layers\",\n text: \"Clear All\"\n }\n },\n buttons: {\n edit: \"Edit layers\",\n editDisabled: \"No layers to edit\",\n remove: \"Delete layers\",\n removeDisabled: \"No layers to delete\"\n }\n },\n handlers: {\n edit: {\n tooltip: {\n text: \"Drag handles or markers to edit features.\",\n subtext: \"Click cancel to undo changes.\"\n }\n },\n remove: {\n tooltip: {\n text: \"Click on a feature to remove.\"\n }\n }\n }\n }\n }, L.Draw.Event = {}, L.Draw.Event.CREATED = \"draw:created\", L.Draw.Event.EDITED = \"draw:edited\", L.Draw.Event.DELETED = \"draw:deleted\", L.Draw.Event.DRAWSTART = \"draw:drawstart\", L.Draw.Event.DRAWSTOP = \"draw:drawstop\", L.Draw.Event.DRAWVERTEX = \"draw:drawvertex\", L.Draw.Event.EDITSTART = \"draw:editstart\", L.Draw.Event.EDITMOVE = \"draw:editmove\", L.Draw.Event.EDITRESIZE = \"draw:editresize\", L.Draw.Event.EDITVERTEX = \"draw:editvertex\", L.Draw.Event.EDITSTOP = \"draw:editstop\", L.Draw.Event.DELETESTART = \"draw:deletestart\", L.Draw.Event.DELETESTOP = \"draw:deletestop\", L.Draw.Event.TOOLBAROPENED = \"draw:toolbaropened\", L.Draw.Event.TOOLBARCLOSED = \"draw:toolbarclosed\", L.Draw.Event.MARKERCONTEXT = \"draw:markercontext\", L.Draw = L.Draw || {}, L.Draw.Feature = L.Handler.extend({\n initialize: func