From ed980e0e73c9fb48a1049c612af26e1e9c9bbc7b Mon Sep 17 00:00:00 2001 From: Bart van den Eijnden Date: Thu, 23 Oct 2014 21:33:41 +0200 Subject: [PATCH] Add uriScheme parameter to Bing Maps metadata request to avoid mixed content --- src/ol/source/bingmapssource.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/source/bingmapssource.js b/src/ol/source/bingmapssource.js index 2670bab953..fdcb439a4d 100644 --- a/src/ol/source/bingmapssource.js +++ b/src/ol/source/bingmapssource.js @@ -56,6 +56,7 @@ ol.source.BingMaps = function(options) { var jsonp = new goog.net.Jsonp(uri, 'jsonp'); jsonp.send({ 'include': 'ImageryProviders', + 'uriScheme': ol.IS_HTTPS ? 'https' : 'http', 'key': options.key }, goog.bind(this.handleImageryMetadataResponse, this));