Title: Google Maps on Multisite
Last modified: February 18, 2019

---

# Google Maps on Multisite

 *  Resolved [wpweaver](https://wordpress.org/support/users/wpweaver/)
 * (@wpweaver)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/google-maps-on-multisite/)
 * THe Google Maps block seems to fail on a **Multisite** installation. It seems
   to work okay on a single site.
 * The editor end works, but I get this javascript displayed as text on the visitor
   view (and no map displayed):
 * `window.addEventListener(‘load’, function() { if (typeof google === “undefined”)
   return null; var location = { lat: parseFloat(39.4013703), lng: parseFloat(-107.21339360000002)};
   var contentHtml = ‘<div class=”advgbmap-wrapper”><h2 class=”advgbmap-title”>Eiffel
   Tower</h2><p class=”advgbmap-desc”></p></div>’; var mapStyle = ”; var map = new
   google.maps.Map(document.getElementById(‘advgbmap-xxxxxxx’), { zoom: 18, center:
   location, styles: mapStyle !== ” ? JSON.parse(mapStyle) : {}, gestureHandling:‘
   cooperative’, }); var infoWindow = new google.maps.InfoWindow({ content: contentHtml});
   var marker = new google.maps.Marker({ position: location, map: map, title: ‘Eiffel
   Tower’, animation: google.maps.Animation.DROP, icon: { url: ‘https://maps.gstatic.
   com/mapfiles/api-3/images/spotlight-poi2.png’, scaledSize: new google.maps.Size(
   27, 43), }, }); marker.addListener(‘click’, function() { infoWindow.open(map,
   marker); }); })`
    -  This topic was modified 7 years, 3 months ago by [wpweaver](https://wordpress.org/support/users/wpweaver/).

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

 *  [JoomUnited](https://wordpress.org/support/users/joomunited/)
 * (@joomunited)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/google-maps-on-multisite/#post-11221190)
 * Hi,
 * It seems to be related to unfiltered_html issue you found on the other post.
   
   The <script> tag have been removed and then displays it as plain text. We’re 
   working on it 😉
 *  [JoomUnited](https://wordpress.org/support/users/joomunited/)
 * (@joomunited)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/google-maps-on-multisite/#post-11244367)
 * Hi,
 * We just updated Advanced Gutenberg to fix the unfiltered_html on the Google Maps
   block.
    Could you re-check?
 * Cheers,

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

The topic ‘Google Maps on Multisite’ is closed to new replies.

 * ![](https://ps.w.org/advanced-gutenberg/assets/icon-256x256.png?rev=3393761)
 * [PublishPress Blocks - Block Controls, Block Visibility, Block Permissions](https://wordpress.org/plugins/advanced-gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-gutenberg/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [JoomUnited](https://wordpress.org/support/users/joomunited/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/google-maps-on-multisite/#post-11244367)
 * Status: resolved