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.


                <div id="googleMap" style="height:280px;width:100%;"></div>
<script src=""></script>


                * {
/*   border: solid 1px */


                var schools = [
  ['新北市蘆洲區仁愛國小', 25.091225, 121.470677, 7],
  ['新北市三重區金陵女中', 25.042971, 121.467114, 5],
  ['新北市立淡水高級商工職業學校', 25.187315, 121.454549, 3],
  ['新北市瑞芳國小', 25.107698, 121.805046, 2],
  ['台北市立成功高級中學', 25.042856, 121.524409, 1],
  ['臺北市立龍門國民中學', 25.024435, 121.538972, 6]

var map = new google.maps.Map(document.getElementById('googleMap'), {
  zoom: 11,
  center: new google.maps.LatLng(25.08, 121.6),
  mapTypeId: google.maps.MapTypeId.ROADMAP

var infowindow = new google.maps.InfoWindow();

var marker, i;
var markers = [];

for (i = 0; i < schools.length; i++) {  
  marker = new google.maps.Marker({
    position: new google.maps.LatLng(schools[i][1], schools[i][2]),
    map: map


  google.maps.event.addListener(marker, 'mouseover', (function(marker, i) {
    return function() {
      infowindow.setContent(schools[i][0]);, marker);
  })(marker, i));

// source from