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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.



    <meta charset="utf-8" />
    <meta http-equiv="x-ua-compatible" content="IE=Edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />

    <!-- Add references to the Leaflet JS map control resources. -->
    <link rel="stylesheet" href="" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin="" />
    <script src="" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin=""></script>
  <!-- Add reference to the Azure Maps Leaflet plugin. -->
  <script src=""></script>
    <div id="myMap"></div>


body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;

#myMap {
  width: 100%;
  height: 100%;



                //Create a map instance.
var map ='myMap', {
  center: [0, 0],
  zoom: 2

//Add authentication details for connecting to Azure Maps.
var authOptions = {
  //Use Azure Active Directory authentication.
  authType: 'anonymous',
  clientId: "04ec075f-3827-4aed-9975-d56301a2d663", //Your Azure Maps account Client ID is required to access your Azure Maps account.

  getToken: function (resolve, reject, map) {
    //URL to your authentication service that retrieves an Azure Active Directory Token.
    var tokenServiceUrl = "";

    fetch(tokenServiceUrl).then(r => r.text()).then(token => resolve(token));

  //Alternatively, use an Azure Maps key. Get an Azure Maps key at NOTE: The primary key should be used as the key.
  //authType: 'subscriptionKey',
  //subscriptionKey: '<Your Azure Maps Key>'

//Use the static function for creating Azure Maps tile layer easily.
L.tileLayer.azureMaps({ authOptions: authOptions }).addTo(map)

    //Alternatively, create an instance of the Azure Maps Tile Layer and add it to the map.
    var layer = new L.TileLayer.AzureMaps({
      authOptions: authOptions,
      tilesetId: 'fr-FR',
      language: 'fr-FR'