Openlayers Client - Layer Eyevi_eesti_kov2022
| Coordinate System | Image format |
|---|---|
| png |
Bounding Box
-211000.0, 5732000.0, 1325000.0, 7268000.0
JavaScript code
<script src="static/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
var mapOptions = {
projection: new OpenLayers.Projection('EPSG:3301'),
resolutions: [6000.0, 3000.0, 1500.0, 750.0, 375.0, 187.5, 93.75, 46.875, 23.4375,
11.71875, 5.859375, 2.9296875, 1.46484375, 0.732421875, 0.3662109375, 0.18310546875,
0.091552734375, 0.0457763671875, 0.0228881835938, 0.0114440917969, 0.00572204589844,
0.00286102294922],
units: 'm',
maxExtent: new OpenLayers.Bounds(-211000.0, 5732000.0, 1325000.0, 7268000.0),
tileSize: new OpenLayers.Size(256, 256)
};
map = new OpenLayers.Map('map', mapOptions);
var layer = new OpenLayers.Layer.WMTS({
name: "WMTS Eyevi_eesti_kov2022",
url:
'../wmts/Eyevi_eesti_kov2022/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png',
layer: 'Eyevi_eesti_kov2022',
matrixSet: 'eesti_grid',
format: 'png',
isBaseLayer: true,
style: 'default',
requestEncoding: 'REST'
});
map.addLayer(layer)
map.zoomToExtent(new OpenLayers.Bounds(350000.00, 6300000.00, 770000.00, 6700000.00));
}
</script>