Title: jsapi mixed content
Last modified: August 31, 2016

---

# jsapi mixed content

 *  [maronus](https://wordpress.org/support/users/maronus/)
 * (@maronus)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/jsapi-mixed-content/)
 * I run a multilingual site with 3 languages using Polylang plugin.
 * Maps(layer) will show in a custom front-page with home_url [https://…/language/](https://…/language/)
 * I understand Leaflet Maps Marker loads the Google scripts needed for display 
   google maps.
 * Whereas 2 languages properly use <script type=’text/javascript’ src=’[https://www.google.com/jsapi?key&ver=3.7′></script&gt](https://www.google.com/jsapi?key&ver=3.7′></script&gt);,
 * the third language uses http: instead of https: and results in mixed content 
   even though the same layer is assigned to different languages.
 * How should I correct this?
 * [https://wordpress.org/plugins/leaflet-maps-marker/](https://wordpress.org/plugins/leaflet-maps-marker/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/jsapi-mixed-content/#post-7306529)
 * Hi maronus,
    the Google script are loaded via https by default with one exception:
   if the Chinese locale zn is used, http is used instead. This is due to the fact
   that users reported issues with https loading in China. Loading scripts depending
   on locale used was the best workaround I could offer here. Anyway from a feature
   point of view, loading the scripts via http should not cause any issues – maps
   will work in the same way as if scripts were loaded via https best, Robert

Viewing 1 replies (of 1 total)

The topic ‘jsapi mixed content’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-maps-marker/assets/icon.svg?rev=970936)
 * [Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)](https://wordpress.org/plugins/leaflet-maps-marker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-maps-marker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-maps-marker/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-maps-marker/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/jsapi-mixed-content/#post-7306529)
 * Status: not resolved