Skip to content

Commit

Permalink
Merge pull request #222 from makinacorpus/prevent_conflict_geometryutil
Browse files Browse the repository at this point in the history
Prevent conflict with Leaflet.GeometryUtil
  • Loading branch information
jacobtoye committed Nov 24, 2013
2 parents 3931dcf + 705e889 commit 3cba370
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ext/GeometryUtil.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
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 @@ -65,4 +65,4 @@ L.GeometryUtil = {

return distanceStr;
}
};
});

0 comments on commit 3cba370

Please sign in to comment.