Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/src/map/map-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function MapControlFactory(
{actionComponents.map((ActionComponent, index) => (
<ActionComponent key={index} className="map-control-action" {...actionComponentProps} />
))}
{mapState && mapStateActions ? (
{mapState && mapStateActions && !restProps.isExport ? (
<MapNavigationControl
mapState={mapState}
mapIndex={mapIndex}
Expand Down
15 changes: 12 additions & 3 deletions src/components/src/plot-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,17 @@ const CLASS_FILTER = [
'mapboxgl-control-container',
'attrition-link',
'attrition-logo',
'map-control__panel-split-viewport-tools'
'map-control__panel-split-viewport-tools',
'map-navigation-control'
];
const DOM_FILTER_FUNC = node => !CLASS_FILTER.includes(node.className);
const DOM_FILTER_FUNC = node => {
const className = typeof node.className === 'string' ? node.className : '';
if (!className) {
return true;
}
const classes = className.split(/\s+/);
return !CLASS_FILTER.some(cls => classes.includes(cls));
};
const OUT_OF_SCREEN_POSITION = -9999;

/**
Expand Down Expand Up @@ -75,7 +83,8 @@ const StyledPlotContainer = styled.div<StyledPlotContainerProps>`
.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-right,
.mapbox-attribution-container,
.map-control__panel-split-viewport-tools {
.map-control__panel-split-viewport-tools,
.map-navigation-control {
display: none;
}

Expand Down
Loading