Skip to content

Commit

Permalink
Merge pull request #223 from nexushoratio/patch-1
Browse files Browse the repository at this point in the history
Minor spelling fix
  • Loading branch information
jacobtoye committed Nov 24, 2013
2 parents 7a61503 + 6531574 commit 3931dcf
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
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;
}
});
});

0 comments on commit 3931dcf

Please sign in to comment.