Map not displaying
-
-Responsive Theme
I have tried to follow the other comments and solutions in the forums. They are not working for me. I just can’t get the map to display even though I can set the dimensions.
-
G’day Josh,
Link please?
cheers,
RossRoss,
I am using it on a local build. It is not live. I am running MAMP and developing through Coda2. I have full internet access through the built-in browser.
I don’t have a link to share. Sorry.
-Josh
Have you checked for JavaScript errors logged in the browser console? Can you see some HTML markup and JavaScript for the map if you view source in your browser?
cheers,
RossI am getting errors. Here is the image in of the console errors.
I am not sure what you want me to relay to you.
‘Uncaught ReferenceError: google is not defined
FlexibleMap (anonymous function)’G’day Josh,
Something is stripping the domain off your Google Maps API script, and replacing it with your localhost address. It should be this:
http://maps.google.com/maps/api/js?v=3.11&sensor=falsebut you’re getting this:
http://localhost:8888/maps/api/js?v=3.11&sensor=falseThat ain’t gonna work 🙂
cheers,
RossThat worked. As soon as I read that url’s were being changed. I immediately remembered that I had another plugin running to change my local urls to root urls once I moved my site to its home on the server.
I deactivated that Root Relative URL plugin and all is well. I am sure there is a blacklist for URLs that it shouldn’t touch. I want to run both of the plugins but it looks like there is some conflict resolution that I need to take care of.
For now, your plugin ( and Jetpack ) now work flawlessly. Nice tip on the URLs.
-Josh
G’day Josh,
For developing locally and deploying to another server, you might be interested in this plugin: WP Migrate DB. It converts URLs and file paths from your local to your destination (or from live to local) when it generates the SQL file for the database. The Pro version is well worth the money too, but even the free version is good.
cheers,
Ross
The topic ‘Map not displaying’ is closed to new replies.