Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

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


Auto Save

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.


                <<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <script src="//"></script>
  <script src="" type="text/javascript"></script>
  <script src="">
  <script src="">
  <script src=''></script>
  <link href='' rel='stylesheet'>
  <link rel="stylesheet" href="" type="text/css">
   <link rel="stylesheet" type="text/css" href="styles.css">
  <title>Natural Hazards API</title>
     <div class = "row">
        <div class= "col-md-6">
          <dl id="eventList">Natural Hazard Events</dl>
          $( document ).ready(function() {
    $.getJSON( "", {
        status: "open",
        limit: 20
    .done(function( data ) {
        $.each(, function( key, event ) {
            $( "#eventList" ).append(
                "<dt>" + + ": " + event.title + "</dt>"
            if (event.description != null &&event.description.length) {
                $( "#eventList" ).append(
                    "<dd><em>" + event.description + "</em></dd>"
         <div class= 'col-md-8' id='map' > 
           <div id= 'retina' class = 'retina'>



      height: relative;
      width: 800px;
      position: center

    /* The Retina effect */
    background:url('img/map.png') no-repeat center center white;
    border:2px solid white;

    /* Positioned absolutely, so we can move it around */

    /* Hidden by default */

    /* A special chrome version of the cursor */
      height: 600px;
      width: 100%; 
      padding: 0px;

* {
  box-sizing: border-box;


mapboxgl.accessToken = 'pk.eyJ1IjoibXVsdGl2ZXJzZW11ZmZpbiIsImEiOiJjam51cjBhcWwwN2RyM3dudngzeXZ0cHB6In0.kma6XOVomvu4FAmhOTzllQ';
var map = new mapboxgl.Map({
    container: 'map', // container id
    style: 'mapbox://styles/mapbox/satellite-v9', // stylesheet location
  projection: 'globe',
    // center: [0, 30.5066], // starting position [lng, lat]
    // zoom: 2, // starting zoom
    // pitch: 40
map.on('load', () => {

  new mapboxgl.Map({