服务API
影像服务简介
平台影像服务支持HTTP协议。
平台影像服务采用OGC WMTS标准。
平台影像服务对所有用户开放。使用本组服务之前,需要在应用管理创建应用。
影像服务列表
请求示例

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>arcgis_js_api用例</title>
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-2.1.4.min.js"></script>
<link rel="stylesheet" href="https://js.arcgis.com/3.39/esri/css/esri.css">
<script src="https://js.arcgis.com/3.39/"></script>

<style>
html,
body,
#map {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
</style>

<script type="text/javascript">
var myMap;

$(function() {
test5();
});

function test5() {

require(["esri/map",
"esri/layers/WMTSLayer",
"esri/layers/WMTSLayerInfo",
"esri/geometry/Extent",
"esri/layers/TileInfo",
"esri/SpatialReference",
"dojo/domReady!"
],
function(Map,
WMTSLayer,
WMTSLayerInfo,
Extent,
TileInfo,
SpatialReference,
parser) {


var map = new Map("map", {
center: [106.25, 26.25],
zoom: 10
});

var tileInfo = new TileInfo({
"dpi": 96,
"format": "MIXED",
"compressionQuality": 75.0,
"spatialReference": new SpatialReference({
"wkid": 4490
}),
"rows": 256,
"cols": 256,
"origin": {
"x": -180.0,
"y": 90.0
},
"lods": [{
"level": "0",
"scale": 5.91657527591555E8,
"resolution": 1.4078260157100582
},
{
"level": "1",
"scale": 2.9549759305875003E8,
"resolution": 0.7031250000000002
},
{
"level": "2",
"scale": 1.4774879652937502E8,
"resolution": 0.3515625000000001
},
{
"level": "3",
"scale": 7.387439826468751E7,
"resolution": 0.17578125000000006
},
{
"level": "4",
"scale": 3.6937199132343754E7,
"resolution": 0.08789062500000003
},
{
"level": "5",
"scale": 1.8468599566171877E7,
"resolution": 0.043945312500000014
},
{
"level": "6",
"scale": 9234299.783085939,
"resolution": 0.021972656250000007
},
{
"level": "7",
"scale": 4617149.891542969,
"resolution": 0.010986328125000003
},
{
"level": "8",
"scale": 2308574.9457714846,
"resolution": 0.005493164062500002
},
{
"level": "9",
"scale": 1154287.4728857423,
"resolution": 0.002746582031250001
},
{
"level": "10",
"scale": 577143.7364428712,
"resolution": 0.0013732910156250004
},
{
"level": "11",
"scale": 288571.8682214356,
"resolution": 6.866455078125002E-4
},
{
"level": "12",
"scale": 144285.9341107178,
"resolution": 3.433227539062501E-4
},
{
"level": "13",
"scale": 72142.9670553589,
"resolution": 1.7166137695312505E-4
},
{
"level": "14",
"scale": 36071.48352767945,
"resolution": 8.583068847656253E-5
},
{
"level": "15",
"scale": 18035.741763839724,
"resolution": 4.2915344238281264E-5
},
{
"level": "16",
"scale": 9017.870881919862,
"resolution": 2.1457672119140632E-5
},
{
"level": "17",
"scale": 4508.935440959931,
"resolution": 1.0728836059570316E-5
},
{
"level": "18",
"scale": 2254.4677204799655,
"resolution": 5.364418029785158E-6
},
{
"level": "19",
"scale": 1127.2338602399827,
"resolution": 2.682209014892579E-6
},
{
"level": "20",
"scale": 563.6169301199914,
"resolution": 1.3411045074462895E-6
}
]
});
var tileExtent = new Extent(103.59218537807476, 24.591252654790857, 109.57454547286045, 29.227441549301126, new SpatialReference({
wkid: 4490
}));

var layerInfo = new WMTSLayerInfo({
tileInfo: tileInfo,
fullExtent: tileExtent,
initialExtent: tileExtent,
identifier: "GZS2020DOM3",
tileMatrixSet: "default",
format: "image/png",
style: "default"
});

var resourceInfo = {
version: "1.0.0",
layerInfos: [layerInfo],
copyright: ""
};
var options = {
serviceMode: "KVP",
resourceInfo: resourceInfo,
layerInfo: layerInfo
};

//var key = "******"; //使用其它api

//"******"是密钥
var key = "******"+"&";//使用arcgis_js_api
var wmtsLayer = new WMTSLayer("http://61.243.3.233:8034/arcgis/rest/services/GZS2020DOM3/MapServer/WMTS?key="+key,
options);
map.addLayer(wmtsLayer);


});

}


</script>

</head>
<body>
<div id="map"> </div>

</body>
</html>