cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <ul>
    <li id="map1"></li><h5>Map 1 - Stamen Design : Toner</h5>
    <li id="map2"></li><h5>Map 2 - Stamen Design : Watercolour</h5>
    <li id="map3"></li><h5>Map 3 - CartoDB : Antique</h5>
    <li id="map4"></li><h5>Map 4 - CartoDB : Dark</h5>
    <li id="map5"></li><h5>Map 5 - CartoDB : Light</h5>
    <li id="map6"></li><h5>Map 6 - CartoDB : FlatBlue</h5>
    <li id="map7"></li><h5>Map 7 - CartoDB : Midnight</h5>
    <li id="map8"></li><h5>Map 8 - Mapbox : Woodcut</h5>
    <li id="map9"></li><h5>Map 9 - Mapquest</h5>
    <li id="map10"></li><h5>Map 10 - Esri : World Imagery</h5>
    <li id="map11"></li><h5>Map 11 - Esri : World Street Map</h5>
    <li id="map12"></li><h5>Map 12 - Esri : World Topographic Map</h5>
    <li id="map13"></li><h5>Map 13 - Esri : World Shaded Relief</h5>
    <li id="map14"></li><h5>Map 14 - OpenStreetMap Mapnik</h5>
    <li id="map15"></li><h5>Map 15 - OpenStreetMap BlackAndWhite</h5>
    <li id="map16"></li><h5>Map 16 - OpenStreetMap DE</h5>
    <li id="map17"></li><h5>Map 17 - OpenStreetMap France</h5>
    <li id="map18"></li><h5>Map 18 - OpenStreetMap HOT</h5>
    <li id="map19"></li><h5>Map 19 - OpenStreetMap Topo</h5>
    <li id="map20"></li><h5>Map 20 - OpenCycleMap</h5>
</ul>
            
          
!
            
              body {font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size:20px; margin:0;padding:0;background: #fff;}
ul{margin:0;padding:0;}
li {width: 100%;height: 200px;display:block;}
h5{margin:0 5px 20px 5px; text-align: left;font-weight: normal; font-family: serif; font-size: 11px; font-style: italic;}
            
          
!
            
              var map1 = L.map('map1', {
    center: [51.5286416,-0.1015987],
    zoom: 12,
    scrollWheelZoom: false
});
    L.tileLayer('https://stamen-tiles.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png', {
    attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.',
}).addTo(map1);

/*** MAP 2 ***/
var map2 = L.map('map2', {
    center: [51.5286416,-0.1015987],
    zoom: 12,
    scrollWheelZoom: false
});
    L.tileLayer('http://{s}.tile.stamen.com/watercolor/{z}/{x}/{y}.jpg', {
    attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.',
}).addTo(map2);

/*** MAP 3 ***/
var map3 = L.map('map3', {
    center: [51.5286416,-0.1015987],
    zoom: 9,
    scrollWheelZoom: false
});
    L.tileLayer('http://{s}.api.cartocdn.com/base-antique/{z}/{x}/{y}.png', {
    attribution: 'OpenStreetMap contributors, © CartoDB'
}).addTo(map3);

/*** MAP 4 ***/
var map4 = L.map('map4', {
    center: [51.5286416,-0.1015987],
    zoom: 5,
    scrollWheelZoom: false
});
    L.tileLayer('http://{s}.api.cartocdn.com/base-dark/{z}/{x}/{y}.png', {
    attribution: 'OpenStreetMap contributors, © CartoDB'
}).addTo(map4);

/*** MAP 5 ***/
var map5 = L.map('map5', {
    center: [51.5286416,-0.1015987],
    zoom: 5,
    scrollWheelZoom: false
});
    L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', {
    attribution: 'OpenStreetMap contributors, © CartoDB'
}).addTo(map5);


/*** MAP 6 ***/
var map6 = L.map('map6', {
    center: [51.5286416,-0.1015987],
    zoom: 5,
    scrollWheelZoom: false
});
    L.tileLayer('http://{s}.api.cartocdn.com/base-flatblue/{z}/{x}/{y}.png', {
    attribution: 'OpenStreetMap contributors, © CartoDB'
}).addTo(map6);

/*** MAP 7 ***/
var map7 = L.map('map7', {
    center: [51.5286416,-0.1015987],
    zoom: 5,
    scrollWheelZoom: false
});
    L.tileLayer('http://{s}.api.cartocdn.com/base-midnight/{z}/{x}/{y}.png', {
    attribution: 'OpenStreetMap contributors, © CartoDB'
}).addTo(map7);

/*** MAP 8 ***/
var map8 = L.map('map8', {
 center: [51.5286416,-0.1015987],
    zoom: 5,
    scrollWheelZoom: false
});
    L.tileLayer('https://a.tiles.mapbox.com/v3/villeda.c4c63d13/{z}/{x}/{y}.png', {
    attribution: 'Wheatpaste - Mapbox <a href="https://www.mapbox.com/about/maps/">&copy; Mapbox &copy; OpenStreetMap</a>'
}).addTo(map8);

/*** MAP 9 ***/
var map9 = L.map('map9', {
    center: [51.5286416,-0.1015987],
    zoom: 12,
    scrollWheelZoom: false
});
    L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}.png', {
    attribution: 'Tiles Courtesy of <a href="http://www.esri.com/software/arcgis/arcgisonline/maps/maps-and-map-layers" target="_blank">Esri</a>'
}).addTo(map9);

/*** MAP 10 ***/
var map10 = L.map('map10', {
    center: [51.5286416,-0.1015987],
    zoom: 5,
    scrollWheelZoom: false
});
    L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}.png', {
    attribution: 'Tiles Courtesy of <a href="http://www.esri.com/software/arcgis/arcgisonline/maps/maps-and-map-layers" target="_blank">Esri</a>'
}).addTo(map10);

/*** MAP 11 ***/
var map11 = L.map('map11', {
    center: [51.5286416,-0.1015987],
    zoom: 5,
    scrollWheelZoom: false
});
    L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}.png', {
    attribution: 'Tiles Courtesy of <a href="http://www.esri.com/software/arcgis/arcgisonline/maps/maps-and-map-layers" target="_blank">Esri</a>'
}).addTo(map11);

/*** MAP 12 ***/
var map12 = L.map('map12', {
    center: [51.5286416,-0.1015987],
    zoom: 5,
    scrollWheelZoom: false
});
    L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}.png', {
    attribution: 'Tiles Courtesy of <a href="http://www.esri.com/software/arcgis/arcgisonline/maps/maps-and-map-layers" target="_blank">Esri</a>'
}).addTo(map12);

/*** MAP 13 ***/
var map13 = L.map('map13', {
    center: [51.5286416,-0.1015987],
    zoom: 5,
    scrollWheelZoom: false
});
    L.tileLayer('http://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}.png', {
    attribution: 'OpenStreetMap contributors, © CartoDB'
}).addTo(map13);

/*** MAP 14 ***/
var map14 = L.map('map14', {
    center: [51.5286416,-0.1015987],
    zoom: 12,
    scrollWheelZoom: false
});
    L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
    attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map14);

/*** MAP 15 ***/

var map15 = L.map('map15', {
    center: [51.5286416,-0.1015987],
    zoom: 5,
    scrollWheelZoom: false
});
    L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}.png', {
    attribution: 'Tiles Courtesy of <a href="http://www.esri.com/software/arcgis/arcgisonline/maps/maps-and-map-layers" target="_blank">Esri</a>'
}).addTo(map15);

/*** MAP 16 ***/
var map16 = L.map('map16', {
    center: [51.5286416,-0.1015987],
    zoom: 12,
    scrollWheelZoom: false
});
    L.tileLayer('http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png', {
    attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map16);

/*** MAP 17 ***/
var map17 = L.map('map17', {
    center: [51.5286416,-0.1015987],
    zoom: 12,
    scrollWheelZoom: false
});
    L.tileLayer('http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', {
    attribution: '&copy; Openstreetmap France | &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map17);

/*** MAP 18 ***/
var map18 = L.map('map18', {
    center: [51.5286416,-0.1015987],
    zoom: 12,
    scrollWheelZoom: false
});
    L.tileLayer('http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
    attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, Tiles courtesy of <a href="http://hot.openstreetmap.org/" target="_blank">Humanitarian OpenStreetMap Team</a>'
}).addTo(map18);

/*** MAP 19 ***/
var map19 = L.map('map19', {
    center: [51.5286416,-0.1015987],
    zoom: 12,
    scrollWheelZoom: false
});
    L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {
    attribution: 'Map data: &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://viewfinderpanoramas.org">SRTM</a> | Map style: &copy; <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'
}).addTo(map19);

/*** MAP 20 ***/
var map20 = L.map('map20', {
    center: [51.5286416,-0.1015987],
    zoom: 12,
    scrollWheelZoom: false
});
    L.tileLayer('http://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png', {
    attribution: '&copy; <a href="http://www.opencyclemap.org">OpenCycleMap</a>, &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map20);
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console