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
};