Skip to content

Commit

Permalink
fix(mapOffline): set conditions correctly (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
drekss authored and mbarbeau committed Oct 4, 2019
1 parent 2f8f274 commit 7105c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/geo/src/lib/map/shared/mapOffline.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7105c93

Please sign in to comment.