WebCAD-Lib-TS API 文档 - v1.0.0
    Preparing search index...

    Interface IWmsTileUrl

    wms服务url地址接口

    interface IWmsTileUrl {
        mapid?: string | string[];
        version?: string | string[];
        layers?: string | string[];
        bbox?: string;
        srs?: string;
        crs?: string | string[];
        mapbounds?: string;
        width?: number;
        height?: number;
        transparent?: boolean;
        backgroundColor?: string;
        fourParameter?: string | string[];
        isInverseFourParamter?: boolean | boolean[];
        mvt?: boolean;
        useImageRotate?: boolean;
        imageProcessAlg?: number;
        webMapType?: "WGS84" | "GCJ02" | "BD09LL" | "BD09MC";
    }
    Index

    Properties

    mapid?: string | string[]

    地图ID(为空时采用当前打开的mapid), 为数组时表时同时请求多个.

    version?: string | string[]

    地图版本(为空时采用当前打开的地图版本).

    layers?: string | string[]

    图层名称(为空时采用当前打开的地图图层名称).

    bbox?: string

    范围,缺省{bbox-epsg-3857}. (如果要获取地图cad一个范围的wms数据无需任何坐标转换,将此范围填cad范围,srs,crs,mapbounds填为空).

    srs?: string

    当前坐标系,缺省(EPSG:3857).

    crs?: string | string[]

    cad图的坐标系,为空的时候由元数据坐标系决定. 也可直接输入proj4字符串

    mapbounds?: string

    地理真实范围,如有值时,srs将不起作用

    width?: number

    宽.

    height?: number

    高.

    transparent?: boolean

    是否透明.

    backgroundColor?: string

    不透明时的背景颜色,默认为白色。格式必须为rgb(r,g,b)或rgba(r,g,b,a),a不透明应该是255.

    fourParameter?: string | string[]

    四参数(x偏移,y偏移,缩放,旋转弧度),可选,对坐标最后进行修正

    isInverseFourParamter?: boolean | boolean[]

    是否用上面的四参数进行反算,默认false

    mvt?: boolean

    是否是矢量瓦片.

    useImageRotate?: boolean

    是否考虑旋转,在不同坐标系中转换是需要考虑。默认自动考虑是否需要旋转.

    imageProcessAlg?: number

    旋转时图像处理算法. 1或2,默认自动选择(旋转时有用)

    webMapType?: "WGS84" | "GCJ02" | "BD09LL" | "BD09MC"

    当前互联网底图地图类型 WGS84(84坐标,如天地图,osm), GCJ02(火星坐标,如高德,腾讯地图), BD09LL(百度经纬度坐标,如百度地图), BD09MC(百度墨卡托米制坐标,如百度地图)