MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getPolygon

Function getPolygon

libs/mapv/mapv.js:501–512  ·  view source on GitHub ↗
(coordinates)

Source from the content-addressed store, hash-verified

499 }
500
501 function getPolygon(coordinates) {
502 var newCoordinates = [];
503 for (var c = 0; c < coordinates.length; c++) {
504 var coordinate = coordinates[c];
505 var newcoordinate = [];
506 for (var j = 0; j < coordinate.length; j++) {
507 newcoordinate.push(transferFn(coordinate[j]));
508 }
509 newCoordinates.push(newcoordinate);
510 }
511 return newCoordinates;
512 }
513
514 return data;
515};

Callers 1

mapv.jsFile · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected