Title: JavaScript Error &#8211; initMap is not a function
Last modified: July 16, 2018

---

# JavaScript Error – initMap is not a function

 *  Resolved [marcinkrzeminski](https://wordpress.org/support/users/marcinkrzeminski/)
 * (@marcinkrzeminski)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-initmap-is-not-a-function/)
 * Hi,
 * Just wanted to let you know that I’m getting a JS issues when loading the map.
   Map is loaded and working fine, however the JS error is there. Seems to be internal
   logic for the GMaps API. When created an empty function called initMap the error
   is gone.
 * Here’s my noop callback function.
 * `function initMap() {}`
    -  This topic was modified 8 years, 1 month ago by [marcinkrzeminski](https://wordpress.org/support/users/marcinkrzeminski/).

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

 *  [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-initmap-is-not-a-function/#post-10497181)
 * Hi, thank you for reporting the bug.
    Any chance you can post a URL with that
   bug live?
 *  Thread Starter [marcinkrzeminski](https://wordpress.org/support/users/marcinkrzeminski/)
 * (@marcinkrzeminski)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-initmap-is-not-a-function/#post-10497244)
 * Hey,
 * Sure. The site is temporarily available at: [http://fip.iwiz.pl/kontakt/](http://fip.iwiz.pl/kontakt/)
 *  [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-initmap-is-not-a-function/#post-10497258)
 * Thank you very much! Got everything I need. Will fix ASAP 🙂
 *  Thread Starter [marcinkrzeminski](https://wordpress.org/support/users/marcinkrzeminski/)
 * (@marcinkrzeminski)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-initmap-is-not-a-function/#post-10497295)
 * Awesome 👊

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

The topic ‘JavaScript Error – initMap is not a function’ is closed to new replies.

 * ![](https://ps.w.org/simple-google-maps-short-code/assets/icon-256x256.png?rev
   =1868328)
 * [Simple Shortcode for Google Maps](https://wordpress.org/plugins/simple-google-maps-short-code/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-google-maps-short-code/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-google-maps-short-code/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-google-maps-short-code/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-google-maps-short-code/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-google-maps-short-code/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [marcinkrzeminski](https://wordpress.org/support/users/marcinkrzeminski/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-initmap-is-not-a-function/#post-10497295)
 * Status: resolved