(objClassArray)
| 159 | wrapToGeoJSON([L.Polyline, L.Polygon, L.Marker, L.CircleMarker, L.Circle, L.LayerGroup]); |
| 160 | |
| 161 | function wrapToGeoJSON(objClassArray) { |
| 162 | objClassArray.map((objClass) => { |
| 163 | objClass.defaultFunction = objClass.prototype.toGeoJSON; |
| 164 | objClass.include({ |
| 165 | toGeoJSON: function (precision) { |
| 166 | return objClass.defaultFunction.call(this, precision || L.toGeoJSONPrecision || 15); |
| 167 | } |
| 168 | }) |
| 169 | return objClass; |
| 170 | }) |
| 171 | } |
| 172 | |
| 173 | function toLatLng(a, b, c) { |
| 174 | if (a instanceof L.latLng) { |