        mapLink = '<a href="http://openstreetmap.org">OpenStreetMap</a>';
        var street=L.tileLayer(
            'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
            attribution: '&copy; ' + mapLink + ' Contributors',maxZoom: 18});
        var goo=L.tileLayer(
            'http://mt.google.com/vt?&x={x}&y={y}&z={z}', {
            attribution: '&copy; ' + mapLink + ' Contributors',maxZoom: 18});
        var goosat=L.tileLayer(
            'http://mt.google.com/vt?lyrs=s&x={x}&y={y}&z={z}&scaleControl=true', {
            attribution: '&copy; ' + mapLink + ' Contributors',maxZoom: 18});
        var orto=L.tileLayer(
            'http://m1.mapserver.mapy.cz/ophoto-m/{z}-{x}-{y}', {
            attribution: '&copy; ' + mapLink + ' Contributors', minZoom: 7,maxZoom: 22});    
        var diskfile=L.tileLayer(
            'file://g:/Mapy/SKHikingTZTRelief//{z}/{x}/{y}.png', {
            attribution: '&copy; ' + mapLink + ' Contributors',minZoom: 7,maxZoom: 15});
        var mapask=L.tileLayer(
            'http://static.mapa.zoznam.sk/mps/turis/{z}/{x}/{x}_{y}.gif', {
            attribution: '&copy; ' + mapLink + ' Contributors',minZoom:7,maxZoom: 15});
        var otile=L.tileLayer(
            'http://otile2.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg', {
            attribution: '&copy; ' + mapLink + ' Contributors',minZoom:7,maxZoom: 18});
        var mtb=L.tileLayer(
            'http://tile.mtbmap.cz/mtbmap_tiles/{z}/{x}/{y}.png', {
            attribution: '&copy; ' + mapLink + ' Contributors',minZoom:7,maxZoom: 18});
        var toolserver=L.tileLayer(
            'http://toolserver.org/tiles/hikebike/{z}/{x}/{y}.png', {
            attribution: '&copy; ' + mapLink + ' Contributors',minZoom:7,maxZoom: 18});
	var nokia=L.tileLayer(
            'http://1.maps.nlp.nokia.com/maptile/2.1/maptile/newest/hybrid.day/{z}/{x}/{y}/256/png8?app_id=SqE1xcSngCd3m4a1zEGb&token=r0sR1DzqDkS6sDnh902FWQ&lg=ENG', {
            attribution: '&copy; ' + mapLink + ' Contributors',minZoom:7,maxZoom: 20});
        var wtc=L.tileLayer(
            'http://webtiles.timepress.cz/cyklo_256/{z}/{x}/{y}', {
            attribution: '&copy; Cykloserver',minZoom:1,maxZoom: 18});
	var wth=L.tileLayer(
            'http://webtiles.timepress.cz/hike_256/{z}/{x}/{y}', {
            attribution: '&copy; Cykloserver',minZoom:1,maxZoom: 18});
        var tzt=L.tileLayer(
            'http://tile.lonvia.de/hiking/{z}/{x}/{y}.png', {
            attribution: '&copy; ' + mapLink + ' Contributors',minZoom:11,maxZoom: 18});
        var contur=L.tileLayer(
            'http://www.freemap.sk/layers/contours/?/{z}/{x}/{y}.png', {
            attribution: '&copy; ' + mapLink + ' Contributors',minZoom:7,maxZoom: 18});
        var lc=L.tileLayer(
            'http://gpsteam.eu/cache/nlcml/{z}/{x}/{y}.png', {
            attribution: '&copy; ' + mapLink + ' Contributors',minZoom:7,maxZoom: 18});
        var kese=L.tileLayer(
            'http://tiles01.geocaching.com/map/map.png?x={x}&y={y}&z={z}&ep=1',{
            attribution: '&copy; GS',minZoom:7,maxZoom: 18});      
        var gsmap=L.tileLayer(
            'https://maptiles0{s}.geocaching.com/tile/{z}/{x}/{y}.png',{
            "subdomains": "12345678",attribution: '&copy; GS',minZoom:5,maxZoom: 19});      

        var map = L.map('map', {
	  		center: [lll[0], lll[1]],
		  	zoom: zoo,
			  layers: [street]
        });
            
        var baseMaps = {
        "Openstreet": street,
        "Google": goo,
        "GSmap": gsmap,
        "Satelit": goosat,
        "OrtoFoto": orto,
        "Shocard": diskfile,
        "FreeTurist(SK)": mapask,     
        "MTB": mtb,
        "ToolServer": toolserver,               
        "Otile": otile,
        "Nokia": nokia,
	"Cyklo": wtc,
	"Hike": wth
         };            
        
        var overlays = {
	"Tourist line": tzt,
        "Contour line": contur,
        "Forest roads":lc,
	 "Caches":kese
        };
