WordPress.org

Support

Support » Plugins and Hacks » WP Google Maps » [Resolved] Maps not working in chrome

[Resolved] Maps not working in chrome

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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

    Plugin Author WPGMaps

    @wpgmaps

    Hi there
    Thanks for posting the solution! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Maps not working in chrome’ is closed to new replies.
Skip to toolbar