Skip to content

Commit

Permalink
Automate the switching between online and offline maps #1217 - do not…
Browse files Browse the repository at this point in the history
… refresh when offline is on.
  • Loading branch information
HarelM committed Jun 23, 2020
1 parent 4f56520 commit 3f8d79a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export class AutomaticLayerPresentationComponent extends BaseMapComponent implem
if (state.hasInternetAccess === this.hasInternetAccess) {
return;
}
if (this.layerData.isOfflineOn === true) {
return;
}
this.hasInternetAccess = state.hasInternetAccess;
if (this.sourceAdded) {
this.removeLayer(this.layerData.address);
Expand Down

0 comments on commit 3f8d79a

Please sign in to comment.