Search code examples
google-mapssslhttpsmixed-content

Google Maps, HTTP in China and Mixed Content Error


I'm displaying Google maps in China, the API there uses HTTP. However, my website is HTTPS.

Chrome, and any other mainstream browser throws a Mixed Content error.

How do I overcome this?


Solution

  • Was not able to find an easy solution with Google Maps.

    However, using Gaode Maps ( 高德地图 ) helps was an alternative for Chinese based clients on sites HTTPS is needed.

    They have an SDK with English instructions and similar functionality and coverage to Google Maps.

    It is slower than Google Maps for non-China based users but is still okay to use. You could detect the user's location and use Google Maps and Gaode Maps as needed.