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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <script src=""></script>

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

<a href="" target"_blank">more guide info</a>


                #map {
   .labels {
     color: red;
     background-color: white;
     font-family: "Lucida Grande", "Arial", sans-serif;
     font-size: 10px;
     font-weight: bold;
     text-align: center;
     width: 80px;     
     border: 2px solid black;
     white-space: nowrap;


                var locations = [
  {name:'train station',price:'160NT',lat:25.0455016,lng:121.5186618},
  {name:'MRT station',price:'100NT',lat:25.0625538,lng:121.5171593}, 

function initialize() {
  var markerCenter = new google.maps.LatLng(25.0625938,121.5308613);
  var mapOptions = {
    zoom: 14,
    center: markerCenter,
    disableDefaultUI: true
  map = new google.maps.Map(document.getElementById('map'),
  marker = new google.maps.Marker({
    animation: google.maps.Animation.DROP,
		position: markerCenter
  var markersArr;
    for (var i = 0; i < locations.length; i++) {
          var item = locations[i];
          var infowindow = new google.maps.InfoWindow();
          var marker = new MarkerWithLabel({
                    draggable: false,
                    raiseOnDrag: false,
                    map: map,
                    labelContent: '<span>'+ +'<br/>'+ item.price +'</span>',
                    labelAnchor: new google.maps.Point(40,32),
                    labelClass: "labels", // the CSS class for the label
                    labelStyle: {opacity: 1},
                    position: {lat:, lng: item.lng},
                    data:'Go to ' + '<br/> Taxi price: ' +item.price
        marker.addListener('click', function() {
          infowindow.setContent( );
, this);

google.maps.event.addDomListener(window, 'load', initialize);