Skip to content

Commit

Permalink
fix(enhancedTable): zoom from details makes table transparent (fgpv-v…
Browse files Browse the repository at this point in the history
  • Loading branch information
dane-thomas authored and Shruti Vellanki committed Mar 14, 2019
1 parent 79c224b commit 8d281e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion enhancedTable/details-and-zoom-buttons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export class DetailsAndZoomButtons {
this.zoomToFeature = function (oid) {
const map = that.mapApi.mapI;
//set appropriate offset for point before zooming
(that.panelManager.maximized || that.panelManager.isMobile()) ? that.mapApi.mapI.externalPanel($('#enhancedTable')) : that.mapApi.mapI.externalPanel(undefined);
let offset = (that.panelManager.maximized || that.panelManager.isMobile()) ? { x: 0, y: 0 } : { x: 0.10416666666666667, y: 0.24464094319399785 };
map.zoomToFeature(proxy, oid, offset);
};
Expand Down
3 changes: 3 additions & 0 deletions enhancedTable/panel-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class PanelManager {
clearInterval(this.toastInterval);
}
this.currentTableLayer = undefined;
this.mapApi.mapI.externalPanel(undefined);
close();
}

Expand Down Expand Up @@ -188,8 +189,10 @@ export class PanelManager {
setSize() {
if (this.maximized) {
this.panel.element[0].classList.add('full');
this.mapApi.mapI.externalPanel($('#enhancedTable'));
} else {
this.panel.element[0].classList.remove('full');
this.mapApi.mapI.externalPanel(undefined);
}
}

Expand Down

0 comments on commit 8d281e6

Please sign in to comment.