Title: InvalidValueError: initMap is not a function
Last modified: December 21, 2016

---

# InvalidValueError: initMap is not a function

 *  [DERNERSERFT](https://wordpress.org/support/users/garl/)
 * (@garl)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/invalidvalueerror-initmap-is-not-a-function/)
 * Hello there. I’m having trouble getting the map to display.
 * `Uncaught Eb message: "initMap is not a function", name: "InvalidValueError",
   stack: "Error at new Eb (http://maps.google.com/maps/api/js?sensor=false&callback
   =initMap&key=#&ver=4.7:41:365)"`
 * The key in the error message is my actual key, I just used # as a placeholder.
   Any idea why this is happening?
    -  This topic was modified 9 years, 6 months ago by [DERNERSERFT](https://wordpress.org/support/users/garl/).

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

 *  Thread Starter [DERNERSERFT](https://wordpress.org/support/users/garl/)
 * (@garl)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/invalidvalueerror-initmap-is-not-a-function/#post-8577900)
 * `[pw_map address="New York City" width="100%" height="200px" key="#"]`
 * I tried removing “&callback=initMap” from simple-google-map-short-code.php and
   that gets rid of the error message. However, nothing loads. When you inspect 
   element, it only shows the script, nothing for the actual map.
 * `<script type="text/javascript" src="//maps.google.com/maps/api/js?sensor=false&
   key=#&ver=4.7"></script>`
 *  Moderator [Pippin Williamson](https://wordpress.org/support/users/mordauk/)
 * (@mordauk)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/invalidvalueerror-initmap-is-not-a-function/#post-8593696)
 * Does the same problem occur if all other plugins on your site are deactivated?

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

The topic ‘InvalidValueError: 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Pippin Williamson](https://wordpress.org/support/users/mordauk/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/invalidvalueerror-initmap-is-not-a-function/#post-8593696)
 * Status: not resolved