Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tile.center.y -
mapView.worldCenter.y +
tile.boundingBox.extents.y * expandFactor;
planes[2].constant = topConstant;
const bottomConstant =
tile.center.y -
mapView.worldCenter.y -
tile.boundingBox.extents.y * expandFactor;
planes[3].constant = -bottomConstant;
}
);
}
if (
(isCirclesTechnique(technique) || isSquaresTechnique(technique)) &&
technique.enablePicking !== undefined
) {
// tslint:disable-next-line:max-line-length
(object as MapViewPoints).enableRayTesting = technique.enablePicking!;
}
if (
isLineTechnique(technique) ||
(isSegmentsTechnique(technique) &&
technique.color !== undefined &&
Expr.isExpr(technique.color))
) {
const fadingParams = this.getFadingParams(displayZoomLevel, technique);
FadingFeature.addRenderHelper(
object,
viewRanges,
projection,
techniqueIndex,
buffers.poiGeometryBuffer,
feature.properties
);
} else if (isTextTechnique(technique)) {
this.processPointLabels(
[feature.geometry.coordinates],
center,
projection,
techniqueIndex,
technique.label!,
buffers.textGeometryBuffer,
feature.properties
);
} else if (isCirclesTechnique(technique) || isSquaresTechnique(technique)) {
this.processPoints(
[feature.geometry.coordinates],
center,
projection,
techniqueIndex,
buffers.geometryBuffer,
feature.properties
);
}
}
break;
case "MultiPoint":
techniqueIndices = this.findTechniqueIndices(feature, "point", styleSetEvaluator);
for (const techniqueIndex of techniqueIndices) {
const technique = styleSetEvaluator.techniques[techniqueIndex];
private addFeatureData(srcGeometry: Geometry, technique: Technique, object: THREE.Object3D) {
if (
((srcGeometry.objInfos !== undefined && srcGeometry.objInfos.length > 0) ||
isCirclesTechnique(technique) ||
isSquaresTechnique(technique)) &&
!isSolidLineTechnique(technique)
) {
const featureData: TileFeatureData = {
geometryType: srcGeometry.type,
starts: srcGeometry.featureStarts,
objInfos: srcGeometry.objInfos
};
object.userData.feature = featureData;
}
}