Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Prevent conflict with Leaflet.GeometryUtil #222

Merged
merged 1 commit into from

2 participants

@leplatrem

If Leaflet.GeometryUtil already loaded, prevent overwrite.

@jacobtoye jacobtoye merged commit 3cba370 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 22, 2013
  1. @leplatrem
This page is out of date. Refresh to see the latest.
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;
}
-};
+});
Something went wrong with that request. Please try again.