message: Add test to reproduce the issue when clipping tiles at level 2
  There is a precision issue and the clipping fails to correctly
  classify the inner rings of clipped polygons at level 2.
diff: * Licensed under Apache 2.0, see full license in LICENSE
  * SPDX-License-Identifier: Apache-2.0
  */
  -import { Feature, FeatureCollection, StyleSet } from "@here/harp-datasource-protocol";
  +import { Feature, FeatureCollection, FlatTheme, StyleSet } from "@here/harp-datasource-protocol";
  import { clipLineString } from "@here/harp-geometry/lib/ClipLineString";
  import { wrapLineString } from "@here/harp-geometry/lib/WrapLineString";
  import { wrapPolygon } from "@here/harp-geometry/lib/WrapPolygon";
  @@ -22,6 +22,7 @@ import * as turf from "@turf/turf";
  import { Vector2, Vector3 } from "three";
  import * as polygon_crossing_antimeridian from "../resources/polygon_crossing_antimeridian.json";
  +import { GeoJsonStore } from "./utils/GeoJsonStore";
  import { GeoJsonTest } from "./utils/GeoJsonTest";
  import { ThemeBuilder } from "./utils/ThemeBuilder";
  @@ -1169,4 +1170,53 @@ describe("MapView + OmvDataSource + GeoJsonDataProvider rendering test", functio
  });
  });
  });
  +
  + describe("Polygons", async function () {
  + it("Triangle with a hole rendered at zoom level 2", async function () {
  + const theme: FlatTheme = {
  + lights,
  + styles: [
  + {
  + styleSet: "geojson",
  + when: ["==", ["geometry-type"], "Polygon"],
  + technique: "fill",
  + color: "rgba(100,100,100,0.5)",
  + lineWidth: 2
  + }
  + ]
  + };
  +
  + const polygon = turf.polygon([
  + [
  + [0, 0, 0],
  + [170, 35, 0],
  + [170, -35, 0],
  + [0, 0, 0]
  + ],
  + [
  + [0, 0, 0],
  + [170, 15, 0],
  + [170, -15, 0],
  + [0, 0, 0]
  + ]
  + ]);
  +
  + const [lng, lat] = turf.center(polygon).geometry!.coordinates;
  +
  + const geoJsonStore = new GeoJsonStore();
  +
  + geoJsonStore.features.insert(polygon);
  +
  + await geoJsonTest.run({
  + mochaTest: this,
  + testImageName: "geojson-triangle-with-hole-at-zoom-level-2",
  + dataProvider: geoJsonStore,
  + theme,
  + lookAt: {
  + zoomLevel: 2,
  + target: [lng, lat]
  + }
  + });
  + });
  + });
  });
  