Openlayers Client - Layer nzt_dirv_dr10lt_vert
| Coordinate System | Image format |
|---|---|
| png |
Bounding Box
214839.143147193, 5959578.5205, 701746.659849102, 6272011.0695
JavaScript code
<script src="static/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
var mapOptions = {
projection: new OpenLayers.Projection('EPSG:3346'),
resolutions: [1901.982487116832, 950.991243558416, 475.495621779208, 237.747810889604,
118.873905444802, 59.436952722401, 29.7184763612005, 14.85923818060025, 7.429619090300125,
3.7148095451500627, 1.8574047725750313, 0.9287023862875157, 0.46435119314375783,
0.23217559657187892, 0.11608779828593946, 0.05804389914296973, 0.029021949571484865,
0.014510974785742432, 0.007255487392871216, 0.003627743696435608],
units: 'm',
maxExtent: new OpenLayers.Bounds(214839.143147193, 5959578.5205, 701746.659849102,
6272011.0695),
tileSize: new OpenLayers.Size(256, 256)
};
map = new OpenLayers.Map('map', mapOptions);
var layer = new OpenLayers.Layer.WMTS({
name: "WMTS nzt_dirv_dr10lt_vert",
url:
'../wmts/nzt_dirv_dr10lt_vert/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png',
layer: 'nzt_dirv_dr10lt_vert',
matrixSet: 'LKS94',
format: 'png',
isBaseLayer: true,
style: 'default',
requestEncoding: 'REST'
});
map.addLayer(layer)
map.zoomToExtent(new OpenLayers.Bounds(214839.14, 5959578.52, 701746.66, 6272011.07));
}
</script>