diff --git a/packages/geo/src/lib/map/shared/mapOffline.directive.ts b/packages/geo/src/lib/map/shared/mapOffline.directive.ts index f47b372d32..99021c0b75 100644 --- a/packages/geo/src/lib/map/shared/mapOffline.directive.ts +++ b/packages/geo/src/lib/map/shared/mapOffline.directive.ts @@ -63,13 +63,13 @@ export class MapOfflineDirective implements AfterViewInit { if (sourceOptions.pathOffline && this.state.connection === false) { - if (sourceOptions.type === 'vector' || 'cluster') { + if (sourceOptions.type === 'vector' || sourceOptions.type === 'cluster') { return; } layer.ol.getSource().setUrl(sourceOptions.pathOffline); } else if (sourceOptions.pathOffline && this.state.connection === true) { - if (sourceOptions.type === 'vector' || 'cluster') { + if (sourceOptions.type === 'vector' || sourceOptions.type === 'cluster') { return; } layer.ol.getSource().setUrl(sourceOptions.url);