I am creating a new custom block; when I put HTML into the body and select Full HTML as text format, it gives me only the source code back. What might be the problem? This is a full HTML link I get from http://maps-website.com/.

<script src='https://maps.googleapis.com/maps/api/js?v=3.exp&key= AIzaSyADwz5L6rGV82W_Iom2uMxbyP_mR2ZPEVw '></script><div style='overflow:hidden;height:425px;width:1920px;'><div id='gmap_canvas' style='height:425px;width:1920px;'></div><style>#gmap_canvas img{max-width:none!important;background:none!important}</style></div> <a href='https://embedmaps.net'>embed a google map</a> <script type='text/javascript' src='https://embedmaps.com/google-maps-authorization/script.js?id=ac49ccff700b1b72264816987089dabdd343ea85'></script><script type='text/javascript'>function init_map(){var myOptions = {zoom:12,center:new google.maps.LatLng(55.68811213574507,12.744411111718822),mapTypeId: google.maps.MapTypeId.ROADMAP};map = new google.maps.Map(document.getElementById('gmap_canvas'), myOptions);marker = new google.maps.Marker({map: map,position: new google.maps.LatLng(55.68811213574507,12.744411111718822)});infowindow = new google.maps.InfoWindow({content:'<strong>Vento Maritime</strong><br>Toldbodgade 35<br> Copenhagen<br>'});google.maps.event.addListener(marker, 'click', function(){infowindow.open(map,marker);});infowindow.open(map,marker);}google.maps.event.addDomListener(window, 'load', init_map);</script>

EDIT: While looking at developer's tools console, I noticed there is 403 forbidden error.

  • Are you able to solve?
    Feb 7 '17 at 6:02

Before paste the code you need to click on "Source" option.

See the screen shot

enter image description here

  • thank you for an offer, but I tried it, sadly it doesn't solve the issue.
    – Viktor
    Feb 14 '17 at 8:02
  • Check this rgog1.ply.st
    Feb 14 '17 at 8:13

enter image description hereuse Markup module which helps with custom html maps.. if it doesnt work ping me up... I will provide you the code...See the image below for limitations...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.