WordPress.org

Ready to get started?Download WordPress

Forums

WP Google Maps
[resolved] Maps not working in chrome (4 posts)

  1. dallas@acrius.ca
    Member
    Posted 1 year ago #

    Maps seem to be working in all browsers except chrome. Getting a Google not defined error in chrome console.

    Any help is appreciated!

    http://wordpress.org/extend/plugins/wp-google-maps/

  2. dallas@acrius.ca
    Member
    Posted 1 year ago #

    I think it maybe because it is an ecomm site and it is using https with an ssl if I use http:// the google maps work.

  3. dallas@acrius.ca
    Member
    Posted 1 year ago #

    Just a heads up I am using pro and I figured it out.

    I added

    <script type="text/javascript">
                           var gmapsJsHost = (("https:" == document.location.protocol) ? "https://" : "http://");
                           document.write(unescape("%3Cscript src='" + gmapsJsHost + "maps.google.com/maps/api/js?sensor=false' type='text/javascript'%3E%3C/script%3E"));
            </script>

    to replace the http map api call

  4. WPGMaps
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there
    Thanks for posting the solution! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic