Skip to content

Commit 7d4bbe4

Browse files
committed
Other - Remove dead code
1 parent b40e1cc commit 7d4bbe4

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/geoProjections.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -237,22 +237,6 @@ const projections = {
237237
},
238238
};
239239

240-
function geoToPath(geometry) {
241-
const drawPoly = coords =>
242-
coords.map(
243-
ring => {
244-
const pts = ring.map(([lon, lat]) => project([lon, lat]));
245-
const validPts = pts.filter(([x, y]) => Number.isFinite(x) && Number.isFinite(y));
246-
if (validPts.length < 3) return '';
247-
return 'M' + validPts.map(([x, y]) => `${x},${y}`).join('L') + 'Z';
248-
}
249-
).filter(Boolean).join(' ');
250-
if (geometry.type === 'Polygon') return drawPoly(geometry.coordinates);
251-
if (geometry.type === 'MultiPolygon')
252-
return geometry.coordinates.map(drawPoly).join(' ');
253-
return '';
254-
}
255-
256240
function getProjectedBounds(projection, features, width, height, center = [0, 0]) {
257241
let minX = Infinity, minY = Infinity, maxX = -Infinity, maxY = -Infinity;
258242
for (const feature of features) {

0 commit comments

Comments
 (0)