cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-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.

              /* 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 = 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>'

  // 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)
	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
Loading ..................