Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


  <link rel="stylesheet" href="" />
  <script src="">
  <link rel="stylesheet" href="">
      <script src=""></script>
  <script src=""></script>

  <div class="container">
    <h2>Stadt- und Parzellenplan</h2>
    <div id="map"></div>
    This examples shows how to use tiles of the <a target="blank" href="" /> </a> in leaflet using the Swiss CH1903+ / LV95 (<a target="blank" href="" target="_blank">EPSG:2056</a>).<br>
 <p>The map shows the orthofoto 2017 of the canton Basel-Stadt (<a target="blank" href="">Orthofoto 2017 March</a>). </p>
    <p>The WMTS in EPSG 2056 is provided for the layers defined in the <a target="blank" href="">WMTS Capabilities</a>.</p>


                #map {
  height: 350px;
  width: 800px;



                var lv95 = {
 epsg: 'EPSG:2056',
 def: '+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 +x_0=2600000 +y_0=1200000 +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs',
 resolutions: [50,20,10,5,2.5,2,1.5,1,0.5,0.25,0.1,0.05,0.025,0.01],
 origin: [2550000,1315000]
var crs = new L.Proj.CRS(lv95.epsg, lv95.def, { 
 resolutions: lv95.resolutions, 
 origin: lv95.origin
var map = new L.Map('map', {
    crs: crs,
    maxZoom: crs.options.resolutions.length,

L.tileLayer('{z}/{y}/{x}.png', {
  maxZoom: crs.options.resolutions.length,
  //minZoom: 0,
    '<a href="">Geoportal Kanton Basel-Stadt</a>',
map.setView(L.latLng(47.55856, 7.59142),4);