AW-4406
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details

AW-4620
Willem Dantuma 2022-12-21 07:45:00 +01:00
parent 0b8dbf4e2e
commit 161717bc7b
1 changed files with 3 additions and 1 deletions

View File

@ -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");