Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const techniques = styleSetEvaluator.getMatchingTechniques(env);
const geoCenter = webMercatorTilingScheme.getGeoBox(tileKey).center;
const worldCenter = projection.projectPoint(geoCenter, new Vector3());
// Convert the input coordinates to local world coord coordinates (i.e. projected world
// coordinates relative to the tile center in world coordinates)
const worldPoints = this.convertToLocalWorldCoordinates(
data,
geoCenter,
projection,
worldCenter
);
// Create actual line-geometry out of the data.
const lineGroup = new LineGroup();
lineGroup.add(worldCenter, worldPoints);
for (const technique of techniques) {
geometries.push(this.createLineGeometry(lineGroup, technique._index));
}
}