From 402bbcea0d0c241fc86674fd51ac29bcd71fc908 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Wed, 21 Dec 2022 07:45:00 +0100 Subject: [PATCH] AW-4406 --- .../components/aol/item-layers/item-layers.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts b/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts index bec746f..f6ed0f6 100644 --- a/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts +++ b/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts @@ -13,6 +13,7 @@ import {Tile,Layer,Image} from 'ol/layer'; import {XYZ,ImageStatic,OSM,BingMaps,TileWMS,TileArcGISRest,TileJSON,Source} from 'ol/source'; import {Vector as VectorSource} from 'ol/source'; import { Vector as VectorLayer } from 'ol/layer'; +import { VectorImage as VectorImageLayer } from 'ol/layer'; import VectorTileSource from 'ol/source/VectorTile'; import VectorTileLayer from 'ol/layer/VectorTile'; import {GeoJSON,MVT} from 'ol/format'; @@ -193,7 +194,8 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange }); } }); - layer = new VectorLayer({ + layer = new VectorImageLayer({ + declutter: true, source: source, style: (feature) => { var key =feature.get("code") + "_" + feature.get("color");