Openlayers Client - Layer myosm
| Coordinate System | Image format |
|---|---|
| png |
Bounding Box
200000.0, 6000000.0, 600000.0, 6400000.0
JavaScript code
<script src="static/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
var mapOptions = {
projection: new OpenLayers.Projection('EPSG:32637'),
resolutions: [1562.5, 781.25, 390.625, 195.3125, 97.65625, 48.828125, 24.4140625,
12.20703125, 6.103515625, 3.0517578125, 1.52587890625, 0.762939453125, 0.3814697265625,
0.19073486328125, 0.095367431640625, 0.0476837158203125, 0.02384185791015625,
0.011920928955078125, 0.0059604644775390625, 0.0029802322387695312,
0.0014901161193847656],
units: 'm',
maxExtent: new OpenLayers.Bounds(200000.0, 6000000.0, 600000.0, 6400000.0),
tileSize: new OpenLayers.Size(256, 256)
};
map = new OpenLayers.Map('map', mapOptions);
var layer = new OpenLayers.Layer.WMTS({
name: "WMTS myosm",
url: '../wmts/myosm/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png',
layer: 'myosm',
matrixSet: 'EPSG32637',
format: 'png',
isBaseLayer: true,
style: 'default',
requestEncoding: 'REST'
});
map.addLayer(layer)
map.zoomToExtent(new OpenLayers.Bounds(200000.00, 6000000.00, 600000.00, 6400000.00));
}
</script>