Skip to content

Commit

Permalink
fix: 暂时关闭谷歌卫星地图和 SAM 地理识别控件
Browse files Browse the repository at this point in the history
  • Loading branch information
syb01094648 committed Mar 26, 2024
1 parent 62dfa93 commit 7d05f27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
6 changes: 2 additions & 4 deletions src/components/map-control-group/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
ZoomControl,
} from '@antv/larkmap';
import React, { useEffect, useState } from 'react';
import { OfficeLayerEnum } from '../../constants';
import { useGlobal } from '../../recoil';
import type { MapControlProps } from '../../types/l7editor';
import { AdministrativeSelect } from './administrative-select-control';
Expand All @@ -22,7 +21,6 @@ import LocationSearchControl from './location-search-control';
import { MapAdministrativeControl } from './map-administrative-control';
import MapThemeControl from './map-theme-control';
import { OfficialLayerControl } from './official-layer-control';
import { SamControl } from './sam-control';
import useStyles from './styles';
import { TextLayerControl } from './text-layer-control';

Expand Down Expand Up @@ -53,7 +51,7 @@ const DefaultMapControl: MapControlProps = {
export const MapControlGroup: React.FC<MapControlGroupProps> = ({
mapControl,
}) => {
const { baseMap, layerType } = useGlobal();
const { baseMap } = useGlobal();
const styles = useStyles();
const [isControlGroupState, setIsControlGroup] = useState(DefaultMapControl);

Expand Down Expand Up @@ -101,7 +99,7 @@ export const MapControlGroup: React.FC<MapControlGroupProps> = ({
className={styles.fullScreen}
/>
)}
{layerType.includes(OfficeLayerEnum.GoogleSatellite) && <SamControl />}
{/* {layerType.includes(OfficeLayerEnum.GoogleSatellite) && <SamControl />} */}
{isControlGroupState.textLayerControl && <TextLayerControl />}
{isControlGroupState.exportImageControl && <ExportImage />}
{isControlGroupState.L7MapOptionControl && <L7MapOptionControl />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ export function OfficialLayerControl() {
'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*qdFDSbvIalgAAAAAAAAAAAAADmJ7AQ/original',
layers: [],
},
{
id: OfficeLayerEnum.GoogleSatellite,
title: t('official_layer_control.index.guGeWeiXingTu'),
image:
'https://mdn.alipayobjects.com/huamei_k6sfo0/afts/img/A*zi2jSqqZ2-8AAAAAAAAAAAAADjWqAQ/original',
layers: [GOOGLE_TILE_MAP_URL, GOOGLE_TILE_MAP_ROUTER_URL],
},
// {
// id: OfficeLayerEnum.GoogleSatellite,
// title: t('official_layer_control.index.guGeWeiXingTu'),
// image:
// 'https://mdn.alipayobjects.com/huamei_k6sfo0/afts/img/A*zi2jSqqZ2-8AAAAAAAAAAAAADjWqAQ/original',
// layers: [GOOGLE_TILE_MAP_URL, GOOGLE_TILE_MAP_ROUTER_URL],
// },
];

const officeLayerGroup = useMemo(() => {
Expand Down

0 comments on commit 7d05f27

Please sign in to comment.