 <p>the map-canvas or its parents must have a decent height. Try </p> <pre><code> &lt;div id="map-canvas" style="height:100px;"&gt;&lt;/div&gt; </code></pre> <p>note the <code>px</code> instead of <code>%</code></p>