Title: Maps Block broken
Last modified: October 25, 2018

---

# Maps Block broken

 *  Resolved [Thierry](https://wordpress.org/support/users/theremingenieur/)
 * (@theremingenieur)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/maps-block-broken/)
 * With Gutenberg 4.1, only a blank rectangle is rendered. What a pain!
    -  This topic was modified 7 years, 7 months ago by [Thierry](https://wordpress.org/support/users/theremingenieur/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Thierry](https://wordpress.org/support/users/theremingenieur/)
 * (@theremingenieur)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/maps-block-broken/#post-10814539)
 * 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](https://wordpress.org/support/users/maximebj/)
 * (@maximebj)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/maps-block-broken/#post-10825805)
 * I’ll look at this issue too ! Thanks for reporting these bugs
 *  Plugin Author [maximebj](https://wordpress.org/support/users/maximebj/)
 * (@maximebj)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/maps-block-broken/#post-10952483)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-gutenberg-blocks_333834.
   svg)
 * [Advanced Gutenberg Blocks](https://wordpress.org/plugins/advanced-gutenberg-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-gutenberg-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-gutenberg-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-gutenberg-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-gutenberg-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-gutenberg-blocks/reviews/)

## Tags

 * [regression](https://wordpress.org/support/topic-tag/regression/)

 * 3 replies
 * 2 participants
 * Last reply from: [maximebj](https://wordpress.org/support/users/maximebj/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/maps-block-broken/#post-10952483)
 * Status: resolved