diff --git a/src/components/map-control-group/index.tsx b/src/components/map-control-group/index.tsx index 02ccf7b..98becaa 100644 --- a/src/components/map-control-group/index.tsx +++ b/src/components/map-control-group/index.tsx @@ -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'; @@ -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'; @@ -53,7 +51,7 @@ const DefaultMapControl: MapControlProps = { export const MapControlGroup: React.FC = ({ mapControl, }) => { - const { baseMap, layerType } = useGlobal(); + const { baseMap } = useGlobal(); const styles = useStyles(); const [isControlGroupState, setIsControlGroup] = useState(DefaultMapControl); @@ -101,7 +99,7 @@ export const MapControlGroup: React.FC = ({ className={styles.fullScreen} /> )} - {layerType.includes(OfficeLayerEnum.GoogleSatellite) && } + {/* {layerType.includes(OfficeLayerEnum.GoogleSatellite) && } */} {isControlGroupState.textLayerControl && } {isControlGroupState.exportImageControl && } {isControlGroupState.L7MapOptionControl && } diff --git a/src/components/map-control-group/official-layer-control/index.tsx b/src/components/map-control-group/official-layer-control/index.tsx index c858a34..fd1b270 100644 --- a/src/components/map-control-group/official-layer-control/index.tsx +++ b/src/components/map-control-group/official-layer-control/index.tsx @@ -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(() => {