1
0
mirror of https://github.com/klokantech/tileserver-php.git synced 2025-10-23 18:56:03 +02:00
Files
php-tileserver/tileserver/demo/mapboxjsxyz.html
2012-11-06 16:54:26 +01:00

29 lines
828 B
HTML

<!doctype html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.5/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.5/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<body>
<div id='map'>
</div>
<script>
var m = mapbox.map('map');
m.addLayer(mapbox.layer().id('examples.map-sjm2w6i9'));
var template = '../chicago/{Z}/{X}/{Y}.png';
m.addLayer(new MM.TemplatedLayer(template));
m.ui.attribution.add()
.content('Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.');
m.ui.zoomer.add();
m.ui.zoombox.add();
m.centerzoom({ lat:41.88, lon: -87.63 }, 12);
</script>
</body>
</html>