天地图常用WMTS配置参数

Posted 向_日_葵

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了天地图常用WMTS配置参数相关的知识,希望对你有一定的参考价值。

wmts常用参数

var matrixIds = [‘0‘, ‘1‘, ‘2‘, ‘3‘, ‘4‘, ‘5‘, ‘6‘, ‘7‘, ‘8‘, ‘9‘, ‘10‘, ‘11‘, ‘12‘, ‘13‘, ‘14‘, ‘15‘, ‘16‘, ‘17‘, ‘18‘, ‘19‘,‘20‘];
var resolutions = [0.703125, 0.3515625,0.17578125,0.087890625, 0.0439453125, 0.02197265625,0.010986328125, 0.0054931640625, 0.00274658203125, 0.001373291015625, 0.0006866455078125, 0.00034332275390625, 0.000171661376953125, 8.58306884765625e-005, 4.291534423828125e-005, 2.1457672119140625e-005, 1.0728836059570313e-005, 5.36441802978515625e-006, 2.682209014892578e-006, 1.341104507446289e-006];

   // 线画图
        var state_vec_options = {
            name: "state_vec",
            url: "http://t1.tianditu.com/vec_c/wmts",
            layer: "vec",
            style: "default",
            format: "tiles",
            matrixIds: matrixIds,
            zoomOffset: 1,
            matrixSet: "c",
            buffer: 0,
            resolutions: resolutions
        };
  
      // 注记图层
        var state_cva_options = {
            name: "state_cva",
            url: "http://t1.tianditu.com/cva_c/wmts",
            layer: "cva",
            style: "default",
            format: "tiles",
            matrixIds: matrixIds,
            zoomOffset: 1,
            matrixSet: "c",
            buffer: 0,
            resolutions: resolutions
        };
        options["state_cva"] = state_cva_options;

        /////影像
        var state_img_2013_options = {
            name: "state_img_2013",
            url: "http://t0.tianditu.com/img_c/wmts",
            layer: "img",
            style: "default",
            format: "tiles",
            matrixIds: matrixIds,
            zoomOffset: 1,
            matrixSet: "c",
            buffer: 0,
            resolutions: resolutions
        };

        var state_cia_2013_options = {
            name: "state_cia_2013",
            url: "http://t0.tianditu.com/cia_c/wmts",
            layer: "cia",
            style: "default",
            format: "tiles",
            matrixIds: matrixIds,
            zoomOffset: 1,
            matrixSet: "c",
            buffer: 0,
            resolutions: resolutions
        };

    // 河南面

 var optionsmian = {
        name: "",
        url: "http://map.hnchj.com/newmapserver4/tianditu/henansltile/wmts",
        layer: "henansltile",
        style: "default",
        format: "image/png",
        matrixIds: matrixIds,
        zoomOffset: 1,
        matrixSet: "TileMatrixSet_0",
        buffer: 0,
        resolutions: resolutions
    };

 

// 河南点

var optionsdian = {
        name: "",
        url: "http://map.hnchj.com/newmapserver4/tianditu/henansldmtile/wmts",
        layer: "henansldmtile",
        style: "default",
        format: "image/png",
        matrixIds: matrixIds,
        zoomOffset: 1,
        matrixSet: "TileMatrixSet_0",
        buffer: 0,
        resolutions: resolutions
    };

  // 河南影像
    var satellitesmian = {
        name: "",
        url: "http://map.hnchj.com/newmapserver4/tianditu/henangfyxtile/wmts",
        layer: "henangfyxtile",
        style: "default",
        format: "image/png",
        matrixIds: matrixIds,
        zoomOffset: 1,
        matrixSet: "TileMatrixSet_0",
        buffer: 0,
        resolutions: resolutions
    };

  // 河南影像点
    var satellitedian = {
        name: "",
        url: "http://map.hnchj.com/newmapserver4/tianditu/henangfyxdmtile/wmts",
        layer: "henangfyxdmtile",
        style: "default",
        format: "image/png",
        matrixIds: matrixIds,
        zoomOffset: 1,
        matrixSet: "TileMatrixSet_0",
        buffer: 0,
        resolutions: resolutions
    };

 

以上是关于天地图常用WMTS配置参数的主要内容,如果未能解决你的问题,请参考以下文章

ArcGIS 天地图URL

在QGIS中如何添加天地图的WMTS

ArcGIS for android访问天地图

leaflet怎么加载天地图的wmts服务

Cesium加载影像

leaflet加载天地图