diff --git a/projects/geo/src/lib/datasource/shared/capabilities.service.ts b/projects/geo/src/lib/datasource/shared/capabilities.service.ts index de8c6a67b7..0de4d1b731 100644 --- a/projects/geo/src/lib/datasource/shared/capabilities.service.ts +++ b/projects/geo/src/lib/datasource/shared/capabilities.service.ts @@ -4,7 +4,7 @@ import { Observable, forkJoin } from 'rxjs'; import { map } from 'rxjs/operators'; import { WMSCapabilities, WMTSCapabilities } from 'ol/format'; -import olSourceWMTS from 'ol/source/WMTS'; +import { optionsFromCapabilities } from 'ol/source/WMTS.js'; import olAttribution from 'ol/control/Attribution'; import { ObjectUtils } from '@igo2/utils'; @@ -156,7 +156,7 @@ export class CapabilitiesService { baseOptions: WMTSDataSourceOptions, capabilities: any ): WMTSDataSourceOptions { - const options = olSourceWMTS.optionsFromCapabilities( + const options = optionsFromCapabilities( capabilities, baseOptions );