Skip to content

Commit

Permalink
Update build and changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtoye committed Nov 24, 2013
1 parent b85d469 commit 0784468
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ An in-progress version being developed on the master branch.

* Restrict editing polygons so that at least 3 points are present. (by [@Zverik](https://github.com/Zverik). [#200](https://github.com/Leaflet/Leaflet.draw/pull/200)
* Tooltips initially start hidden until the mouse has been moved. (by [@Zverik](https://github.com/Zverik). [#210](https://github.com/Leaflet/Leaflet.draw/pull/210)
* Fixup spelling errors. (by [@nexushoratio](https://github.com/nexushoratio). [#223](https://github.com/Leaflet/Leaflet.draw/pull/223)
* Combine ie specific style within leaflet.draw.css stylesheet. (by [@frankrowe](https://github.com/frankrowe). [#221](https://github.com/Leaflet/Leaflet.draw/pull/221)

### Bugfixes

Expand Down
22 changes: 12 additions & 10 deletions dist/leaflet.draw-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,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 Expand Up @@ -846,7 +846,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 Expand Up @@ -1441,7 +1441,7 @@ L.Edit.Rectangle = L.Edit.SimpleShape.extend({

this._shape.setLatLngs(newLatLngs);

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

Expand All @@ -1451,7 +1451,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 @@ -1491,6 +1491,7 @@ L.Rectangle.addInitHook(function () {
}
});


L.Edit = L.Edit || {};

L.Edit.Circle = L.Edit.SimpleShape.extend({
Expand Down Expand Up @@ -1574,7 +1575,7 @@ L.LatLngUtil = {
}
};

L.GeometryUtil = {
L.GeometryUtil = L.extend(L.GeometryUtil || {}, {
// Ported from the OpenLayers implementation. See https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Geometry/LinearRing.js#L270
geodesicArea: function (latLngs) {
var pointsCount = latLngs.length,
Expand Down Expand Up @@ -1641,7 +1642,7 @@ L.GeometryUtil = {

return distanceStr;
}
};
});

L.Util.extend(L.LineUtil, {
// Checks to see if two line segments intersect. Does not handle degenerate cases.
Expand Down Expand Up @@ -1702,7 +1703,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 @@ -1723,7 +1724,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 @@ -1745,6 +1746,7 @@ L.Polyline.include({
}
});


L.Polygon.include({
// Checks a polygon for any intersecting line segments. Ignores holes.
intersects: function () {
Expand Down Expand Up @@ -1782,8 +1784,8 @@ L.Control.Draw = L.Control.extend({
},

initialize: function (options) {
if (L.version <= "0.5.1") {
throw new Error('Leaflet.draw 0.2.0+ requires Leaflet 0.6.0+. Download latest from https://github.com/Leaflet/Leaflet/');
if (L.version <= "0.7") {
throw new Error('Leaflet.draw 0.2.3+ requires Leaflet 0.7.0+. Download latest from https://github.com/Leaflet/Leaflet/');
}

L.Control.prototype.initialize.call(this, options);
Expand Down
Loading

0 comments on commit 0784468

Please sign in to comment.