Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #222 from makinacorpus/prevent_conflict_geometryutil

Prevent conflict with Leaflet.GeometryUtil
  • Loading branch information...
commit 3cba37065ea5be28f42efe9cc47836c9e3f5db8c 2 parents 3931dcf + 705e889
@jacobtoye jacobtoye authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ext/GeometryUtil.js
View
4 src/ext/GeometryUtil.js
@@ -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,
@@ -65,4 +65,4 @@ L.GeometryUtil = {
return distanceStr;
}
-};
+});
Please sign in to comment.
Something went wrong with that request. Please try again.