Skip to content

Commit

Permalink
correction asked
Browse files Browse the repository at this point in the history
  • Loading branch information
guichoquette committed Jul 16, 2024
1 parent 1a1f393 commit 49c7560
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions packages/geoview-aoi-panel/src/aoi-panel.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
// import { TypeBasemapProps } from 'geoview-core/src/geo/layer/basemap/basemap-types';
// import { useMapProjection } from 'geoview-core/src/core/stores/store-interface-and-intial-values/map-state';
// import { useAppDisplayLanguage } from 'geoview-core/src/core/stores/store-interface-and-intial-values/app-state';
import { Extent } from 'geoview-core/src/api/config/types/map-schema-types';
// import { logger } from 'geoview-core/src/core/utils/logger';
// import { getLocalizedMessage } from 'geoview-core/src/core/utils/utilities';
import { getSxClasses } from './area-of-interest-style';

interface AoiPanelProps {
Expand All @@ -26,7 +21,6 @@ type TypeAoiProps = {
};

export function AoiPanel(props: AoiPanelProps): JSX.Element {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { mapId, config } = props;
const aoiList = config.aoiList as AoiListItems;

Expand All @@ -46,8 +40,7 @@ export function AoiPanel(props: AoiPanelProps): JSX.Element {
<Card
tabIndex={0}
className="aoiCardThumbnail"
onClick={() => myMap.zoomToLngLatExtentOrCoordinate(aoiItem.extent, { maxZoom: 13 })}
// onKeyPress={() => setBasemap(basemap.basemapId as string)}
onClick={() => myMap.zoomToLngLatExtentOrCoordinate(aoiItem.extent, { maxZoom: 14 })}
// eslint-disable-next-line react/no-array-index-key
key={index}
title={aoiItem.aoiTitle}
Expand Down
2 changes: 1 addition & 1 deletion packages/geoview-aoi-panel/src/area-of-interest-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const getSxClasses = (theme): any => ({
height: '100%',
width: '100%',
overflow: 'hidden',
border: '1px solid #ccc',
border: '1px solid theme.palette.geoViewColor.ccc',
display: 'flex',
align: 'center',
objectFit: 'cover',
Expand Down

0 comments on commit 49c7560

Please sign in to comment.