-
Notifications
You must be signed in to change notification settings - Fork 994
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
Add the ability to draw curves #1008
base: develop
Are you sure you want to change the base?
Changes from 8 commits
25f3097
454fd33
0d47497
d001557
a6512df
5432007
d1b1bf8
5007205
ab395f6
b9c9538
845171c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,37 +2,44 @@ var deps = { | |
Core: { | ||
src: [ | ||
'Leaflet.draw.js', | ||
'Leaflet.Draw.Event.js' | ||
'Leaflet.Draw.Event.js', | ||
], | ||
desc: 'The core of the plugin. Currently only includes the version.' | ||
}, | ||
|
||
Common: { | ||
src: ['ext/CurveCommon.js'], | ||
desc: 'The files shared with multiple objects of the plugin.' | ||
}, | ||
|
||
DrawHandlers: { | ||
src: [ | ||
'draw/handler/Draw.Feature.js', | ||
'draw/handler/Draw.Polyline.js', | ||
'draw/handler/Draw.Curve.js', | ||
'draw/handler/Draw.Polygon.js', | ||
'draw/handler/Draw.SimpleShape.js', | ||
'draw/handler/Draw.Rectangle.js', | ||
'draw/handler/Draw.Marker.js', | ||
'draw/handler/Draw.CircleMarker.js', | ||
'draw/handler/Draw.Circle.js' | ||
'draw/handler/Draw.Marker.js', | ||
'draw/handler/Draw.CircleMarker.js', | ||
'draw/handler/Draw.Circle.js' | ||
Comment on lines
-17
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whitespace-only changes should be avoided |
||
], | ||
desc: 'Drawing handlers for: polylines, polygons, rectangles, circles, circlemarkers and markers.', | ||
deps: ['Core'] | ||
deps: ['Core', 'Common'] | ||
}, | ||
|
||
EditHandlers: { | ||
src: [ | ||
'edit/handler/Edit.Marker.js', | ||
'edit/handler/Edit.Poly.js', | ||
'edit/handler/Edit.Curve.js', | ||
'edit/handler/Edit.SimpleShape.js', | ||
'edit/handler/Edit.Rectangle.js', | ||
'edit/handler/Edit.CircleMarker.js', | ||
'edit/handler/Edit.CircleMarker.js', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? |
||
'edit/handler/Edit.Circle.js' | ||
], | ||
desc: 'Editing handlers for: polylines, polygons, rectangles, circlemarkers and circles.', | ||
deps: ['Core'] | ||
desc: 'Editing handlers for: polylines, curves, polygons, rectangles, circlemarkers and circles.', | ||
deps: ['Core', 'Common'] | ||
}, | ||
|
||
Extensions: { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
<title>Leaflet.draw vector editing handlers</title> | ||
|
||
<script src="libs/leaflet-src.js"></script> | ||
<script src="libs/Curve.js"></script> | ||
<link rel="stylesheet" href="libs/leaflet.css"/> | ||
|
||
<script src="../../src/Leaflet.draw.js"></script> | ||
|
@@ -19,6 +20,7 @@ | |
<script src="../../src/ext/Polygon.Intersect.js"></script> | ||
<script src="../../src/ext/Polyline.Intersect.js"></script> | ||
<script src="../../src/ext/TouchEvents.js"></script> | ||
<script src="../../src/ext/CurveCommon.js"></script> | ||
|
||
<script src="../../src/draw/DrawToolbar.js"></script> | ||
<script src="../../src/draw/handler/Draw.Feature.js"></script> | ||
|
@@ -29,6 +31,7 @@ | |
<script src="../../src/draw/handler/Draw.CircleMarker.js"></script> | ||
<script src="../../src/draw/handler/Draw.Polygon.js"></script> | ||
<script src="../../src/draw/handler/Draw.Rectangle.js"></script> | ||
<script src="../../src/draw/handler/Draw.Curve.js"></script> | ||
|
||
|
||
<script src="../../src/edit/EditToolbar.js"></script> | ||
|
@@ -43,6 +46,8 @@ | |
<script src="../../src/edit/handler/Edit.Marker.js"></script> | ||
<script src="../../src/edit/handler/Edit.CircleMarker.js"></script> | ||
<script src="../../src/edit/handler/Edit.Circle.js"></script> | ||
<script src="../../src/edit/handler/Edit.Curve.js"></script> | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whitespace? |
||
</head> | ||
<body> | ||
<div id="map" style="width: 800px; height: 600px; border: 1px solid #ccc"></div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meaningless change for this PR