Find more Examples here

Tilelayer - Leaflet (Map-API)

Version reduced to minimal set of HTML Read Example Description

Description

var osm = L.tileLayer('http://a.tile.openstreetmap.org/{z}/{x}/{y}.png', {
    attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
    maxZoom: 18
});

var oa_summer = oam.api.tilelayer(L, 'oa_map');
var oa_winter = oam.api.tilelayer(L, 'oa_map_winter');

var mymap = L.map('mapid', {
    center: [47.546, 10.292],
    zoom:   13,
    layers: [oa_summer, oa_winter, osm]
});

L.control.layers({
    "Outdooractive Summer": oa_summer,
    "Outdooractive Winter": oa_winter,
    "OpenStreetMap": osm
}).addTo(mymap);