Skip to content

Commit

Permalink
#77 Moved clearData and basemap assignment to separate stackview stat…
Browse files Browse the repository at this point in the history
…uses
  • Loading branch information
Jayson Ward authored and Jayson Ward committed Jun 25, 2018
1 parent 67676c0 commit 3599848
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions ExportView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,17 @@ Item {
mainView.appToolBar.historyButtonEnabled = true;
mainView.appToolBar.settingsButtonEnabled = false;
mainView.appToolBar.toolBarTitleLabel = Singletons.Strings.createNewTilePackage;
}

StackView.onActivated: {
mapViewPlus.mapTileService = currentTileService.url;
mapViewPlus.mapTileServiceUsesToken = currentTileService.useTokenToAccess;
}

StackView.onDeactivating: {
mapViewPlus.map.clearData();
}

//--------------------------------------------------------------------------

onExportingChanged: {
Expand Down Expand Up @@ -442,9 +449,9 @@ Item {
tpkTitle: exportView.extractDefaultTPKTitle(exportView.currentTileService.title)

onChangeTileService: {
if (mapViewPlus.map !== null) {
mapViewPlus.map.clearData();
}
// if (mapViewPlus.map !== null) {
// mapViewPlus.map.clearData();
// }
exportView.currentTileIndex = index;
exportView.currentTileService = availableServices.get(index);
mapViewPlus.mapTileService = exportView.currentTileService.url;
Expand Down

0 comments on commit 3599848

Please sign in to comment.