import { MapType } from '../index.types'; export interface AddMapLayerProps { type: MapType; url?: string; groupType?: string; fileId?: string; otherProps?: Record; } interface MapLayerProps { Map: any; MapView: any; } declare class MapLayer implements MapLayerProps { Map: any; MapView: any; constructor(props: MapLayerProps); /** * @Title: 影像服务 * @Author: leslie * @Date: 2021/8/23 */ addImageryLayer(url?: string, otherProps?: any): __esri.ImageryLayer; /** * @Title: 切片服务 * @Author: leslie * @Date: 2021/8/23 */ addTileLayer(url: string, otherProps?: any): __esri.TileLayer; /** * @Title: 自定义切片服务 * @Author: leslie * @Date: 2021/12/28 */ addCustomTileLayer(url: string, otherProps?: any): Promise; /** * @Title: 要素服务 * @Author: leslie * @Date: 2021/8/23 */ addFeatureLayer(url?: string, otherProps?: any): any; /** * @Title: 矢量切片服务 * @Author: leslie * @Date: 2021/8/23 */ addVectorTileLayer(url?: string, otherProps?: any): __esri.VectorTileLayer; /** * @Title: 场景服务 * @Author: leslie * @Date: 2021/8/23 */ addSceneLayer(url?: string, otherProps?: any): __esri.SceneLayer; /** * @Title: 地图服务 * @Author: leslie * @Date: 2021/8/23 */ addMapImageLayer(url?: string, otherProps?: any): __esri.MapImageLayer; /** * @Title: GraphicsLayer * @Author: leslie * @Date: 2021/8/23 */ addGraphicsLayer(props: any): __esri.GraphicsLayer; /** * @Title: WMSLayer * @Author: leslie * @Date: 2021/8/23 */ addWMSLayer(url?: string, otherProps?: any): __esri.WMSLayer; /** * @Title: WMTSLayer * @Author: leslie * @Date: 2021/8/23 */ addWMTSLayer(url?: string, otherProps?: any): __esri.WMTSLayer; /** * @Title: 超图切片服务 * @Author: leslie * @Date: 2021/8/23 */ addSuperMapTileWMSLayer(props: { url: string; otherProps: any; }): Promise; /** * @Title: 天地图 * @Author: leslie * @Date: 2021/8/23 */ addTDLayer(url?: string, otherProps?: any): Promise; /** * @Title: 加载地图 * @Author: leslie * @Date: 2021/8/23 */ loadMap(props: AddMapLayerProps): Promise; /** * @Title: 加载图层到地图 * @Author: leslie * @Date: 2021/8/23 */ addLayerToMap(props: AddMapLayerProps, index?: number): Promise; } export declare const useMapLayer: (props: MapLayerProps) => MapLayer; export default useMapLayer;