• Resolved Thierry

    (@theremingenieur)


    With Gutenberg 4.1, only a blank rectangle is rendered. What a pain!

    • This topic was modified 6 years, 1 month ago by Thierry.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Thierry

    (@theremingenieur)

    Apparently, when rendering the Map Block at the front end, some html formatting is added to the javascript code which breaks everything:

    <div class="wp-block-advanced-gutenberg-blocks-gmap">
    	<script>
    		function initMap2137589149() {</p>
    <p>			var coords = { lat: 51.66094, lng: 8.348746 }</p>
    <p>			var map = new google.maps.Map( document.querySelector( '#gutenblock-gmap-2137589149' ), {
    				zoom: 14,
    				center: coords,
    				styles: "default"			} );</p>
    <p>			var marker = new google.maps.Marker( {
    				position: coords,
    				map: map
    			} );</p>
    <p>			var infoWindow = new google.maps.InfoWindow( {
    	    	content: "</p>
    <p><strong>Conrad-Hansen-Musikschule</strong></p>
    <p>Von-Galen-Platz 1, 59557 Lippstadt, Allemagne</p>
    <p>"
    	  	} )</p>
    <p>			marker.addListener('click', function() {
    	    	infoWindow.open( map, marker );
    	  	} )
    		}
    	</script>
    Plugin Author maximebj

    (@maximebj)

    I’ll look at this issue too ! Thanks for reporting these bugs

    Plugin Author maximebj

    (@maximebj)

    Should be working now with the latest release, but feel free to reopen this issue if something is still wrong

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Maps Block broken’ is closed to new replies.