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

Minor spelling fix #223

Merged
merged 7 commits into from
Nov 24, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Polyline and Polygon drawing handlers take the same options.

| Option | Type | Default | Description
| --- | --- | --- | ---
| allowIntersection | Bool | `true` | Determines if line segements can cross.
| allowIntersection | Bool | `true` | Determines if line segments can cross.
| drawError | Object | [See code](https://github.com/Leaflet/Leaflet.draw/blob/master/src/draw/handler/Draw.Polyline.js#L10) | Configuration options for the error that displays if an intersection is detected.
| guidelineDistance | Number | `20` | Distance in pixels between each guide dash.
| shapeOptions | [Leaflet Polyline options](http://leafletjs.com/reference.html#polyline-options) | [See code](https://github.com/Leaflet/Leaflet.draw/blob/master/src/draw/handler/Draw.Polyline.js#L20) | The options used when drawing the polyline/polygon on the map.
Expand Down
2 changes: 1 addition & 1 deletion src/draw/handler/Draw.Circle.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ L.Draw.Circle = L.Draw.SimpleShape.extend({
if (this._isDrawing) {
this._drawShape(latlng);

// Get the new radius (rouded to 1 dp)
// Get the new radius (rounded to 1 dp)
radius = this._shape.getRadius().toFixed(1);

this._tooltip.updateContent({
Expand Down
2 changes: 1 addition & 1 deletion src/draw/handler/Draw.Polygon.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ L.Draw.Polygon = L.Draw.Polyline.extend({
_updateFinishHandler: function () {
var markerCount = this._markers.length;

// The first marker shold have a click handler to close the polygon
// The first marker should have a click handler to close the polygon
if (markerCount === 1) {
this._markers[0].on('click', this._finishShape, this);
}
Expand Down
6 changes: 3 additions & 3 deletions src/edit/handler/Edit.Rectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ L.Edit.Rectangle = L.Edit.SimpleShape.extend({

this._shape.setLatLngs(newLatLngs);

// Respoition the resize markers
// Reposition the resize markers
this._repositionCornerMarkers();
},

Expand All @@ -76,7 +76,7 @@ L.Edit.Rectangle = L.Edit.SimpleShape.extend({
// Update the shape based on the current position of this corner and the opposite point
this._shape.setBounds(L.latLngBounds(latlng, this._oppositeCorner));

// Respoition the move marker
// Reposition the move marker
bounds = this._shape.getBounds();
this._moveMarker.setLatLng(bounds.getCenter());
},
Expand Down Expand Up @@ -114,4 +114,4 @@ L.Rectangle.addInitHook(function () {
this.editing.enable();
}
}
});
});
6 changes: 3 additions & 3 deletions src/ext/Polyline.Intersect.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ L.Polyline.include({
var points = this._originalPoints,
len = points ? points.length : 0,
lastPoint = points ? points[len - 1] : null,
// The previous previous line segment. Previous line segement doesn't need testing.
// The previous previous line segment. Previous line segment doesn't need testing.
maxIndex = len - 2;

if (this._tooFewPointsForIntersection(1)) {
Expand All @@ -62,7 +62,7 @@ L.Polyline.include({
return !this._originalPoints || len <= 3;
},

// Checks a line segment intersections with any line segements before its predecessor.
// Checks a line segment intersections with any line segments before its predecessor.
// Don't need to check the predecessor as will never intersect.
_lineSegmentsIntersectsRange: function (p, p1, maxIndex, minIndex) {
var points = this._originalPoints,
Expand All @@ -82,4 +82,4 @@ L.Polyline.include({

return false;
}
});
});