cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <svg version="1.1" width="0" height="0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <defs>
    <clipPath id="cut_circle" clipPathUnits="objectBoundingBox">
    <circle cx=".5" cy=".5" r=".47" />
</clipPath>
  </defs>
</svg>
<h1>CSS Shapes - Google Map in Text (with feature detection)</h1>
<div class="embed-container">
  <div id="map"></div>
</div>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam aliquid itaque voluptatibus optio quisquam iste minus, quo repellendus rerum, dolores libero voluptas laudantium minima, sit accusantium sapiente temporibus, cupiditate harum. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam aliquid itaque voluptatibus optio quisquam iste minus, quo repellendus rerum, dolores libero voluptas laudantium minima, sit accusantium sapiente temporibus, cupiditate harum. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam aliquid itaque voluptatibus optio quisquam iste minus, quo repellendus rerum, dolores libero voluptas laudantium minima, sit accusantium sapiente temporibus, cupiditate harum. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam aliquid itaque voluptatibus optio quisquam iste minus, quo repellendus rerum, dolores libero voluptas laudantium minima, sit accusantium sapiente temporibus, cupiditate harum. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam aliquid itaque voluptatibus optio quisquam iste minus, quo repellendus rerum, dolores libero voluptas laudantium minima, sit accusantium sapiente temporibus, cupiditate harum. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam aliquid itaque voluptatibus optio quisquam iste minus, quo repellendus rerum, dolores libero voluptas laudantium minima, sit accusantium sapiente temporibus, cupiditate harum. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam aliquid itaque voluptatibus optio quisquam iste minus, quo repellendus rerum, dolores libero voluptas laudantium minima, sit accusantium sapiente temporibus, cupiditate harum. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam aliquid itaque voluptatibus optio quisquam iste minus, quo repellendus rerum, dolores libero voluptas laudantium minima, sit accusantium sapiente temporibus, cupiditate harum. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam aliquid itaque voluptatibus optio quisquam iste minus, quo repellendus rerum, dolores libero voluptas laudantium minima, sit accusantium sapiente temporibus, cupiditate harum. 
  </p>
            
          
!
            
              body {
  margin: 0 10%;
}

.no-shapes h1:after {
  content: "Sorry, your browser doesn’t support CSS Shapes";
  color: red;
  display: block;
  font-size: 0.5em;
  margin-top: 1em;
}

.embed-container {
  width: 50%;
  height: 0;
  padding-top: 50%;
  border: .5em solid #afdad6;
  margin: 0 2em 1em 0;
  position: relative;
  float: left;
}


#map {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;

}
/* hides zoom widget and satellite toggle*/
#map .gmnoprint { display: none; }


@supports (shape-outside: margin-box) {
  
  .embed-container {
    border-radius: 50%;
    shape-outside: circle(50%);
    shape-outside: margin-box;
    margin-top: 1em;
  }
  
  #map {
    
    -webkit-clip-path: circle(47%);
    clip-path: url(#cut_circle);
    clip-path: circle(50%, 50%, 47%);
    
  }
  
}
            
          
!
            
              # based on styled map example at
# https://goo.gl/sNJiKt

# create an array of styles
styles = [
    stylers: [
        hue: '#00ffe6'
      ,
        saturation: -20
    ]
  ,
    featureType: 'road'
    elementType: 'geometry'
    stylers: [
        lightness: 100
      ,
        visibility: 'simplified'
    ]
  ,
    featureType: 'road'
    elementType: 'labels'
    stylers: [ visibility: 'off' ]
]

# create a new StyledMapType object, passing it the array of styles,
# as well as the name to be displayed on the map type control
styledMap = new google.maps.StyledMapType(styles,
  name: 'Styled Map'
)

# create a map object, and include the
# MapTypeId to add to the map type control
mapOptions =
  zoom: 12
  center: new google.maps.LatLng(52.52, 13.42)
  mapTypeControlOptions:
    mapTypeIds: [
      google.maps.MapTypeId.ROADMAP
      'map_style'
    ]

map = new google.maps.Map(document.getElementById('map'), mapOptions)

# associate the styled map with the MapTypeId and set it to display
map.mapTypes.set 'map_style', styledMap
map.setMapTypeId 'map_style'

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console