<!doctype html>
<html lang="en">
<head>
<style>
.map {
height: 400px;
width: 100%;
}
</style>
<title>GeoAdmin API example</title>
</head>
<body>
<h2>My first GeoAdmin map</h2>
<script src="http://api3.geo.admin.ch/loader.js?lang=en" type="text/javascript"></script>
<div id="map" class="map"></div>
<script type="text/javascript">
var layer = ga.layer.create('ch.swisstopo.pixelkarte-farbe');
var map = new ga.Map({
target: 'map',
layers: [layer],
view: new ol.View({
resolution: 200,
center: [670000, 160000]
})
});
var newLayer = new ol.layer.Tile({
source: new ol.source.XYZ({
projection: 'EPSG:3857',
crossOrigin: '',
attributions: [
new ol.Attribution({
html: '<a target="new" href="http://www.swisstopo.admin.ch/' +
'internet/swisstopo/en/home.html">swisstopo</a>'
})
],
url: 'http://wmts20.geo.admin.ch/1.0.0/ch.swisstopo.pixelkarte-farbe/default/current/3857/{z}/{x}/{y}.jpeg'
})
});
map.addLayer(newLayer);
</script>
</body>
</html>--
You received this message because you are subscribed to the Google Groups "GeoAdmin API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geoadmin-api+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GeoAdmin API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geoadmin-api...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to geoadmin-api+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geoadmin-api+unsubscribe@googlegroups.com.