Skip to content

Commit

Permalink
compatibility workaround for iitc plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoe committed Aug 24, 2019
1 parent 8b2aa53 commit 7265782
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/L.Geodesic.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,13 @@

L.GeodesicPolyline = L.Polyline.extend(PolyMixin);

PolyMixin.options = polyOptions; // workaround for https://github.com/Leaflet/Leaflet/pull/6766/
L.extend(PolyMixin, {
options: polyOptions, // workaround for https://github.com/Leaflet/Leaflet/pull/6766/

getLatLngs: function () { // compatibility workaround for iitc plugins:
return this._latlngs[0]; // it would be more proper to fix plugins themselves (layer-count, cross-links)
} // but it'd be a pain for 3rd-party ones
});
L.GeodesicPolygon = L.Polygon.extend(PolyMixin);

L.GeodesicCircle = L.Polygon.extend({
Expand Down

0 comments on commit 7265782

Please sign in to comment.