Title: WP-Optimize: JS minification affects Google Map
Last modified: August 18, 2020

---

# WP-Optimize: JS minification affects Google Map

 *  Resolved [Rafał](https://wordpress.org/support/users/ayek/)
 * (@ayek)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/wp-optimize-js-minification-affects-google-map/)
 * Hi!
    Map container remains empty. What would cause the issue from 5.5 update?[
   Isolation does not help.]
 * Should I ask [WP-Optimize – Clean, Compress, Cache](https://wordpress.org/plugins/wp-optimize/)
   staff?

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

 *  Plugin Author [Estatik](https://wordpress.org/support/users/estatik/)
 * (@estatik)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/wp-optimize-js-minification-affects-google-map/#post-13286905)
 * Hi there,
 * First of all, please check if the Google Map API key has been added to the settings
   and if the coordinates have been added to the listing.
 * If so, could you describe step by step how to reproduce the bug?
 * Thank you.
 *  Thread Starter [Rafał](https://wordpress.org/support/users/ayek/)
 * (@ayek)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/wp-optimize-js-minification-affects-google-map/#post-13293188)
 * Google Map API is set well. Maps are shown until I enable WP-Optimize Minification.
 *  Plugin Author [Estatik](https://wordpress.org/support/users/estatik/)
 * (@estatik)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/wp-optimize-js-minification-affects-google-map/#post-13321048)
 * Hi Ayek,
 * I played with the WP-Optimize settings for a long time, but I never managed to
   reproduce the error.
 * Could you please [contact us](https://estatik.net/contact-us/)? We would like
   to check the problem directly on your site.
 * Thank you.
 *  Thread Starter [Rafał](https://wordpress.org/support/users/ayek/)
 * (@ayek)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/wp-optimize-js-minification-affects-google-map/#post-13331478)
 * The error occurs even on other themes, with no other plugins enabled except Estatik
   Pro and WP-Optimize.
 * Uncaught ReferenceError: google is not defined at
    `google.maps.Map.prototype.
   panToWithOffset=function(a,b,c)` …
 * By now JavaScript file `/wp-content/plugins/estatik/assets/js/custom/map.min.
   js` need to be excluded from processing.
 *  Plugin Author [Estatik](https://wordpress.org/support/users/estatik/)
 * (@estatik)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/wp-optimize-js-minification-affects-google-map/#post-13344413)
 * Got you.
 * Attached this information to the release notes, our team will work on it.
 * Thank you.

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

The topic ‘WP-Optimize: JS minification affects Google Map’ is closed to new replies.

 * ![](https://ps.w.org/estatik/assets/icon-256x256.png?rev=2819514)
 * [Estatik Real Estate Plugin](https://wordpress.org/plugins/estatik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/estatik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/estatik/)
 * [Active Topics](https://wordpress.org/support/plugin/estatik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/estatik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/estatik/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Estatik](https://wordpress.org/support/users/estatik/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/wp-optimize-js-minification-affects-google-map/#post-13344413)
 * Status: resolved