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.


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


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


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

  // define a base map, that you can choose from many different
  // option here
  L.tileLayer('http://{s}{z}/{x}/{y}.png', {
  	attribution: '&copy; <a href="">OpenStreetMap</a>'

  // define coordinates of marker
  // and text show in popup (after code .bindPopup)
  	.bindPopup("<b>City of Milano</b><br />Center of 940km circle").openPopup();

  // define coordinates of circle center
  // and the radius (ex. 149681)[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