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.


                <div id="map"></div>

<div class="infobox-wrapper">
    <div id="ehs">
        EHS info box
    <div id="amazon">
        Amazon info box
    <div id="facebook">
        FB info box
    <div id="fredhutch">
        Fred Hutch info box




                    <script src=''></script> 
    <script type="text/javascript" src=""></script>
    <script type="text/javascript" src=""></script>


        google.maps.event.addDomListener(window, 'load', init);
        var map, infobox, boxcontent;
        var markers = [];

        function init() {
            var mapOptions = {
                center: new google.maps.LatLng(47.639499,-122.324432),
                zoom: 14,
                zoomControl: true,
                zoomControlOptions: {
                    style: google.maps.ZoomControlStyle.DEFAULT,
                disableDoubleClickZoom: true,
                mapTypeControl: true,
                mapTypeControlOptions: {
                    style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
                scaleControl: true,
                scrollwheel: true,
                panControl: true,
                streetViewControl: true,
                draggable : true,
                overviewMapControl: true,
                overviewMapControlOptions: {
                    opened: false,
                mapTypeId: google.maps.MapTypeId.ROADMAP,

            var mapElement = document.getElementById('map');
            var map = new google.maps.Map(mapElement, mapOptions);
            var locations = [
    ['East Howe Steps', 'ehs', 'undefined', 'undefined', 'undefined', 47.63659149999999, -122.32585899999998, ''],['Amazon Campus', 'amazon', 'undefined', 'undefined', 'undefined', 47.620173, -122.3362563, ''],['Facebook HQ', 'facebook', 'undefined', 'undefined', 'undefined', 47.6288231, -122.3447786, ''],['Fred Hutch', 'fredhutch', 'undefined', 'undefined', 'undefined', 47.627267, -122.3336798, '']

            for (i = 0; i < locations.length; i++) {
                if (locations[i][1] =='undefined'){ description ='';} else { description = locations[i][1];}
                if (locations[i][2] =='undefined'){ telephone ='';} else { telephone = locations[i][2];}
                if (locations[i][3] =='undefined'){ email ='';} else { email = locations[i][3];}
               if (locations[i][4] =='undefined'){ web ='';} else { web = locations[i][4];}
               if (locations[i][7] =='undefined'){ markericon ='';} else { markericon = locations[i][7];}
                marker = new google.maps.Marker({
                    icon: markericon,
                    position: new google.maps.LatLng(locations[i][5], locations[i][6]),
                    map: map,
                    title: locations[i][0],
                    desc: description,
                    tel: telephone,
                    email: email,
                    web: web
                link = '';    

            function MakeInfoWindow(selected) {
                infobox = new InfoBox({
                     content: document.getElementById(selected).value,
                     disableAutoPan: false,
                     maxWidth: 150,
                     pixelOffset: new google.maps.Size(-140, 0),
                     zIndex: null,
                     boxStyle: {
                        background: "url('') no-repeat",
                        opacity: 0.75,
                        width: "280px",
                        padding: "10px"
                    closeBoxMargin: "12px 4px 2px 2px",
                    closeBoxURL: "",
                    infoBoxClearance: new google.maps.Size(1, 1)

                google.maps.event.addListener(marker, 'click', function() {
          , this);
                google.maps.event.addDomListener(window, 'load', init);