@@ -6,7 +6,7 @@ import type Feature from 'ol/Feature'
66import type { LineString , MultiLineString , MultiPolygon , Point , Polygon } from 'ol/geom'
77
88import { allCoordinateSystems , extentUtils , LV95 } from '@swissgeo/coordinates'
9- import { ALL_YEARS_TIMESTAMP , CURRENT_YEAR_TIMESTAMP , LayerType } from '@swissgeo/layers'
9+ import { ALL_YEARS_TIMESTAMP , CURRENT_YEAR_TIMESTAMP } from '@swissgeo/layers'
1010import { geoJsonUtils , layerUtils } from '@swissgeo/layers/utils'
1111import log from '@swissgeo/log'
1212import { getApi3BaseUrl } from '@swissgeo/staging-config'
@@ -236,7 +236,7 @@ async function identifyOnExternalLayer(config: IdentifyConfig): Promise<LayerFea
236236 // If we use different projection, we also need to project out initial coordinate
237237 requestedCoordinate = proj4 ( projection . epsg , requestProjection . epsg , coordinate )
238238 }
239- if ( layer . type === LayerType . WMS ) {
239+ if ( layer . type === ' WMS' ) {
240240 return await identifyOnExternalWmsLayer ( {
241241 ...config ,
242242 coordinate : requestedCoordinate ,
@@ -483,7 +483,7 @@ async function identifyOnExternalWmsLayer(config: IdentifyConfig): Promise<Layer
483483 outputProjection ?? projection ,
484484 projection
485485 ) ,
486- popupDataCanBeTrusted : ! layer . isExternal && layer . type !== LayerType . KML ,
486+ popupDataCanBeTrusted : ! layer . isExternal && layer . type !== ' KML' ,
487487 }
488488 return layerFeature
489489 } )
@@ -657,7 +657,7 @@ function parseGeomAdminFeature(
657657 coordinates : center ,
658658 extent : featureExtent ,
659659 geometry : featureGeoJSONGeometry ,
660- popupDataCanBeTrusted : ! layer . isExternal && layer . type !== LayerType . KML ,
660+ popupDataCanBeTrusted : ! layer . isExternal && layer . type !== ' KML' ,
661661 }
662662 return layerFeature
663663}
0 commit comments