Hi everybody,
i'd like to embed a part of google maps with an responsive iframe. I used the following code:
<script type="text/javascript">// <![CDATA[
function iframeLoaded() {
var iFrameID = document.getElementById('idIframe');
if(iFrameID) {
iFrameID.height = "";
iFrameID.height = iFrameID.contentWindow.document.body.scrollHeight + "px";
}
}
// ]]></script>
</p>
<div><iframe src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d5132817.6330380235!2d5.969134963948056!3d51.08523469108032!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sde!2sde!4v1489137783540" id="idIframe" onload="iframeLoaded()" style="border: none;" allowfullscreen="" width="100%"> </iframe></div>
The problem ist, that the frame is only a few pixel high. Do you have any idea, how to add a container or something like that to it?
Thanks
Thomas