Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
updateMinMaxZoomLevelsFromPoiInfo() {
if (this.poiInfo !== undefined) {
if (this.minZoomLevel === undefined) {
this.minZoomLevel = MathUtils.min2(
this.poiInfo.iconMinZoomLevel,
this.poiInfo.textMinZoomLevel
);
}
if (this.maxZoomLevel === undefined) {
this.maxZoomLevel = MathUtils.max2(
this.poiInfo.iconMaxZoomLevel,
this.poiInfo.textMaxZoomLevel
);
}
}
}
}
tiles.forEach(tile => {
minElevation = MathUtils.min2(minElevation, tile.minElevation);
maxElevation = MathUtils.max2(
maxElevation,
tile.maxElevation + tile.maxGeometryHeight
);
});
});