Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <!-- Container that show map -->
<div id="map"></div>
              
            
!

CSS

              
                /* HTML CSS style custom for full screen */
body {
		padding: 0;
		margin: 0;
	}
html, body, #map {
		height: 100%;
		width: 100%;
		padding: 0;
		margin: 0;
	}
              
            
!

JS

              
                  // define coordinates of map center and zoom
  // where 0 is World view (small scale)
  // and 21 is Street view (large scale)
  var map = L.map('map').setView([45.4613,9.1595], 7);

  // define a base map, that you can choose from many different
  // option here http://www.cityplanner.it/wp_pulito/leaflet-providers-preview/
  L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
  	attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
  }).addTo(map);

  // define coordinates of marker
  // and text show in popup (after code .bindPopup)
  L.marker([45.4613,9.1595]).addTo(map)
  	.bindPopup("<b>City of Milano</b><br />Center of 940km circle").openPopup();

  // define coordinates of circle center
  // and the radius (ex. 149681)
	L.circle([45.4613,9.1595], 149681, {
		color: 'red', // color of circle border
    weight: 3, // thickness of circle border
		fillColor: '#f03', // filling or inside surface of circle
		fillOpacity: 0.2 // transparency of circle fill
	}).addTo(map);
              
            
!
999px

Console