Title: Map won&#039;t display
Last modified: August 22, 2016

---

# Map won't display

 *  Resolved [itsdps](https://wordpress.org/support/users/itsdps/)
 * (@itsdps)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/map-wont-display/)
 * i’m so excited to use this plugin! While the search field is displayed on our
   locator page, no results populate. What do i have to do to make the map appear
   with results? Any light you can shed on this would be helpful. I’m new to WordPress
   🙂 it’s on this page: [http://www.carbonationtherapy.com/locator](http://www.carbonationtherapy.com/locator)
 * VERY EXCITED about the paid version of this plugin – sign me up the moment you’ve
   got it ready.
 * [https://wordpress.org/plugins/wp-store-locator/](https://wordpress.org/plugins/wp-store-locator/)

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/topic/map-wont-display/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/map-wont-display/page/2/?output_format=md)

 *  Thread Starter [itsdps](https://wordpress.org/support/users/itsdps/)
 * (@itsdps)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222242)
 * as soon as i posted this question I went back to the page and saw that the search
   code was laid out differently (in a single line) and it worked! I was able to
   search by postal code and it returned results. Then i logged out and logged back
   in and it was displayed in 4 lines rather than in a single line (see below) and
   it didn’t work anymore.
 * Your location
    Search radius Results Search Button
 * It prompts me to find out my location and seems to work. Unsure why it works 
   sometimes and other times it doesn’t.
 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222295)
 * Can you start by setting a start location on the settings page. In which browser
   does it break, and what do you search for that makes it return results?
 * It looks fine for me, just don’t know what to search for. It sounds a bit like
   something is loaded by your theme / other plugin that breaks it when you are 
   loggedin.
 *  Thread Starter [itsdps](https://wordpress.org/support/users/itsdps/)
 * (@itsdps)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222319)
 * Thank you for your response. The start location is set to Vancouver, BC. Try 
   postal code: V4A 8M6 with 50 km radius and you should get more than 6 listings.
 * I am using Safari 7.0.6 on Mac running Mac OS 10.9.4. The WP theme I am using
   is: Qode Bridge. Here is a list of plugins I am using – could any of them be 
   making problems for the map?
 * Akismet
    Black Studio TinyMCE Widget Contact Form 7 Duplicate Post Easy Maintenance
   Mode Jetpack by WordPress LayerSlider WP Mojo Marketplace WooCommerce WPBakery
   Visual Composer (has a red line on it & gave me an error code recently for some
   reason) WP Store Locator WP Super Cache
 * it’s weird that a couple of times i got a pop up asking to use my current location
   and then the map worked. But now it isn’t. Any help you can give will be appreciated.
 * Thank you
 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222390)
 * The only compatibility issues I’m aware of with is with a Facebook like plugin
   and anything that enables Ajax navigation ( the loading of a new page without
   actually reloading the page )
 * The only way to figure out which plugin is causing the issue ( if this is the
   case ) is to disable the others one by one and test it. Also try for a second
   to switch back to the default wp theme, maybe there is a script in your theme
   that breaks it when you are loggedin.
 * Have you tried a different browser? Maybe it’s a setting in Safari that makes
   it sometimes ask for your location and other times it doesn’t. According to the
   screenshot here under “Location Services in Safari 6 or later” [http://support.apple.com/kb/HT5403](http://support.apple.com/kb/HT5403)
   it can remember it for one day, but maybe there are other options that make it
   remember for a short/longer period.
 *  Thread Starter [itsdps](https://wordpress.org/support/users/itsdps/)
 * (@itsdps)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222526)
 * I finally got a response from QODE theme and they had this to say: “If you say
   that your plugin works well after refresh, it is problem that this plugin doesn’t
   work well with ajax. You should add your plugin initialization in ajax.js (ajax.
   min.js)”
 * Others using the store locator plugin may be experiencing a similar issue so 
   i wanted to post this.
 * Now the big question: How do i add the store locator plugin initialization to
   ajax??
 * Thank you for your help
 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222527)
 * I discovered a problem in the plugin code that seems to affect 0.1% or so of 
   the users, but you might be one of them 🙂
 * If you open the js/wpsl-gmap.js file and scroll to the bottom. There you will
   see this code.
 *     ```
       if ( $( "#wpsl-gmap" ).length ) {
           google.maps.event.addDomListener( window, "load", initializeGmap );
       }
       ```
   
 * Can you change that into this and see if that fixes it for you?
 *     ```
       if ( $( "#wpsl-gmap" ).length ) {
          initializeGmap();
       }
       ```
   
 *  Thread Starter [itsdps](https://wordpress.org/support/users/itsdps/)
 * (@itsdps)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222528)
 * I made the change that you suggested and it didn’t fix it 🙁 btw: i’ve left it
   on the change you suggested rather than revert to original.
 * do you have any other ideas?
 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222529)
 * What is the url where this happens? The url you posted in your first post doesn’t
   work.
 *  Thread Starter [itsdps](https://wordpress.org/support/users/itsdps/)
 * (@itsdps)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222531)
 * Access it the way that our guests would normally do so you can replicate what
   they are experiencing. Go to our homepage: [https://www.microcarbonation.com](https://www.microcarbonation.com)
   and then navigate to the “locate” page from the menu.
 * Note that there is a discrepancy in what you told me to look for and what was
   actually there to begin with in the js/wpsl-gmap.js.
 * This is what was originally there:
    if ( $( “#wpsl-gmap” ).length ) { google.
   maps.event.addDomListener( window, “load”, initializeGmap );
 * This is what you said i should look for:
    if ( $( "#wpsl-gmap" ).length ) {  
   google.maps.event.addDomListener( window, "load", initializeGmap );
 * This is what you wanted me to change it to:
    if ( $( "#wpsl-gmap" ).length ) {
   initializeGmap();
 * Also note that i changed the code twice to see if either instance would produce
   results. I changed it to what you told me to look for and what you recommended
   i replace it with. In both instances i experienced the same problem AND also 
   in both instances when i went to refresh the page the map didn’t populate (which
   normally worked with what was originally there).
 *  Thread Starter [itsdps](https://wordpress.org/support/users/itsdps/)
 * (@itsdps)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222532)
 * Sorry – i copied the wrong code:
 * This is what was originally there:
    if ( $( “#wpsl-gmap” ).length ) { google.
   maps.event.addDomListener( window, “load”, initializeGmap );
 * This is what you said i should look for:
    if ( $( "#wpsl-gmap" ).length ) {  
   google.maps.event.addDomListener( window, "load", initializeGmap );
 *  Thread Starter [itsdps](https://wordpress.org/support/users/itsdps/)
 * (@itsdps)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222533)
 * now i see why it looks different when I copy & paste your code, it’s because 
   the original had quote symbols but what you told me to look for had the quot 
   written out. i guess its the same thing.
 * sorry for the confusion.
 * I still don’t know how to fix this problem.
 * I did notice an ajax wpsl file while i was in there – should we be editing something
   in the ajax file like the theme support told me to do?
 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222534)
 * I suppose there is no option to disable the Ajax navigation in your theme? That
   is indeed the thing that breaks it.
 * How it works is that the js file waits for the page to finish loading, but with
   an Ajax call the js never detects the page being finished so it never loads the
   map.
 * I have to look into how to fix this, and make it compatible with themes that 
   use Ajax to load pages.
 *  Thread Starter [itsdps](https://wordpress.org/support/users/itsdps/)
 * (@itsdps)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222535)
 * I guess anybody running Ajax will need to find another plugin. Do you have any
   recommendations? I will be searching for a plugin that works.
 * Thanks,
 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222536)
 * I didn’t test any other plugins, but I wouldn’t be surprised if other plugins
   that use Google Maps have the same issue with your theme.
 * But as I said, I will look for a solution in the next days. And if you find a
   plugin that does work with Google Maps and Ajax navigation let me know.
 *  Thread Starter [itsdps](https://wordpress.org/support/users/itsdps/)
 * (@itsdps)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/map-wont-display/#post-5222537)
 * I did some research and there are a few of them the most popular seems to be:“
   Ajax Store Locator” plugin for WP. Also, the Store Locator Plus plugin “requires
   Ajax” according to their documentation.
 * Its disappointing because i prefer the layout and look of your product which 
   is why i chose it to begin with.

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/topic/map-wont-display/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/map-wont-display/page/2/?output_format=md)

The topic ‘Map won't display’ is closed to new replies.

 * ![](https://ps.w.org/wp-store-locator/assets/icon-256x256.jpg?rev=1007784)
 * [WP Store Locator](https://wordpress.org/plugins/wp-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-store-locator/reviews/)

## Tags

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

 * 25 replies
 * 4 participants
 * Last reply from: [paromita87](https://wordpress.org/support/users/paromita87/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/map-wont-display/page/2/#post-5222589)
 * Status: resolved