From 2fd6352a57bc35f3812a5d8f5614f4f95cebb7d8 Mon Sep 17 00:00:00 2001 From: Alessandro Isaacs Date: Wed, 2 Mar 2016 14:21:57 -0800 Subject: [PATCH] Use https always --- src/ol/source/cartodb.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ol/source/cartodb.js b/src/ol/source/cartodb.js index d41af2a54f..b92c59eae9 100644 --- a/src/ol/source/cartodb.js +++ b/src/ol/source/cartodb.js @@ -75,8 +75,7 @@ ol.source.CartoDB.prototype.initializeMap_ = function() { this.applyTemplate_(this.templateCache_[paramHash]); return; } - var protocol = window.location.protocol; - var mapUrl = protocol + '//' + this.account_ + + var mapUrl = 'https://' + this.account_ + '.cartodb.com/api/v1/map'; if (this.mapId_) {