<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Add_WMTS_4528</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"/>
<style>
body {
margin: 0;
padding: 0;
}
#map {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
}
</style>
<script src="https://delivery.mapmost.com/cdn/sdk/webgl/v9.4.1/mapmost-webgl-min.js"></script>
</head>
<body>
<div id="map"></div>
<script>
let map = new mapmost.Map({
container: 'map',
style: {
version: 8,
sources: {},
layers: []
},
center: [120.65717659715574, 31.315522851509385],
zoom: 14,
pitch: 0,
userId: '***',
});
map.on('load', function () {
let wmts_option = {
'id': 'wmts-test-layer',
'project': '4528',
'source': {
'tiles': [
"IP/cic/SIPGIS/esri-tile/layerTileService/test_BFSX_JT/rest/services/MapServer/tile/{z}/{y}/{x}"
],
origin: [-5273200, 7202100],
tileSize: 256,
resolutions: [
156367.78906250003,
78183.89453125001,
39091.94726562501,
19545.973632812504,
9772.986816406252,
4886.493408203126,
2443.246704101563,
1221.6233520507815,
610.8116760253907,
305.40583801269537,
152.70291900634768,
76.35145950317384,
38.17572975158692,
19.08786487579346,
9.54393243789673,
4.771966218948365,
2.3859831094741826,
1.1929915547370913,
0.5964957773685456,
0.2982478886842728,
0.1491239443421364
]
}
}
map.addRasterLayer2(wmts_option)
})
</script>
</body>
</html>