Merge pull request #9337 from fredj/codesandbox_div_size

Set map div size in example send to codesandbox
This commit is contained in:
Frédéric Junod
2019-03-15 15:15:59 +01:00
committed by GitHub

View File

@@ -127,9 +127,13 @@
<title>{{ title }}</title>
<!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>{{#if extraHead.remote}}
{{ indent extraHead.remote spaces=4 }}{{/if}}{{#if css.source}}
{{ indent extraHead.remote spaces=4 }}{{/if}}
<style>
{{ indent css.source spaces=6 }} </style>{{/if}}
.map {
width: 100%;
height:400px;
}
{{#if css.source}}{{ indent css.source spaces=6 }}{{/if}} </style>
</head>
<body>
{{ indent contents spaces=4 }} <script src="index.js"></script>