MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / wrapToGeoJSON

Function wrapToGeoJSON

src/leaflet/core/Base.js:161–171  ·  view source on GitHub ↗
(objClassArray)

Source from the content-addressed store, hash-verified

159wrapToGeoJSON([L.Polyline, L.Polygon, L.Marker, L.CircleMarker, L.Circle, L.LayerGroup]);
160
161function 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
173function toLatLng(a, b, c) {
174 if (a instanceof L.latLng) {

Callers 1

Base.jsFile · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected