Pozor! wiki.freemap.sk je archivovaná a už do nej nie je možné prispievať. Užitočné stránky budú premigrované na oficiálne wiki stránky slovenskej OpenStreetMap komunity.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>OpenLayers Tiled Map Service Example</title>
<link rel="stylesheet" href="http://openlayers.org/dev/theme/default/style.css" type="text/css">
<link rel="stylesheet" href="http://openlayers.org/dev/examples/style.css" type="text/css">
<script src="http://www.openlayers.org/api/OpenLayers.js">
<script type="text/javascript">
var map, layerT, layerM;
function init(){
map = new OpenLayers.Map( 'map' );
layerT = new OpenLayers.Layer.OSM("Turistika", "http://mirror.lnx.sk/freemap/layers/presets/T/${z}/${x}/${y}.png", {numZoomLevels: 16});
map.addLayer(layerT);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(19.41,48.52).transform(
new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913")
), 9 );
}
</script>
</head>
<body onload="init()">
<h1 id="title">Testovanie tilesov</h1>
<p id="shortdesc">Turistika zo samovho servera</p>
<div id="map" class="smallmap"></div>
</body>
</html>
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki