Skip to content

Commit

Permalink
fix: changed customLayer import.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-angermann committed Nov 29, 2023
1 parent b4d07d7 commit 7590429
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/map-maplibre/src/lib/maplibre.helpers.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getOpacity, setOpacity, setVisibility, getAllLayers, getUkisLayerIDs, getLayersAndSources, removeLayerAndSource, changeOrderOfLayers, LayerSourceSpecification } from './maplibre.helpers';
import { StyleSpecification, LayerSpecification, SourceSpecification, Map as glMap } from 'maplibre-gl';
import { CustomLayer } from '@dlr-eoc/services-layers/src/public-api';
import { CustomLayer } from '@dlr-eoc/services-layers';
import { addUkisLayerMetadata } from './maplibre-layers.helpers';

const createMapTarget = (size: number[]) => {
Expand Down Expand Up @@ -513,10 +513,10 @@ describe('MaplibreHelpers', () => {

const changeLayers = [ukisLandLayer, ukisWaterLayer];
const allChangeLayers = changeLayers.map(l => l.custom_layer.layers).flat(1).map(l => l.id);

changeOrderOfLayers(map, changeLayers, ukisMapLayers, 'Layers');
const newMapLayers = getAllLayers(map, 'Layers').map(l => l.id);
expect(newMapLayers).toEqual(allChangeLayers);
});

});
});

0 comments on commit 7590429

Please sign in to comment.