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="jp">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="">
    <script src=""></script>

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




                #map {
  height: 1000px;
// CSSはこれだけ


                // leafletを使って地図を作成する
var mymap ='map');
// タイルレイヤーを作成し、地図にセットする
L.tileLayer('{z}/{x}/{y}.png', {
  maxZoom: 18,
  attribution: '<a href="" target="_blank">国土地理院</a>',
// 地図の中心座標とズームレベルを設定する
mymap.setView([43.186912869832774, 141.00784678091327], 13);
// マーカーを作成する
var marker = L.marker([43.186912869832774, 141.00784678091327]).addTo(mymap);
// クリックした際にポップアップメッセージを表示する
// アイコンを作成する
var markerIcon = L.icon({
    iconUrl: '', // アイコン画像のURL
    iconSize:     [32, 32], // アイコンの大きさ
    iconAnchor:   [16, 32], // 画像内でマーカーの位置を指し示す点の位置
    popupAnchor:  [0, -32]  // ポップアップが出現する位置(iconAnchorからの相対位置)
// 上記で作成したアイコンを使用してマーカーを作成する
var marker = L.marker([43.186912869832774, 141.00784678091327], {icon: markerIcon}).addTo(mymap);