Fixes the hardcoded http which was causing cesium not to load over https

Fixes 2719
cherry-pick from PR 139
From another cherry-pick 2a439220c8a1b731c3a18af73d7f13aecddd3173
From cherry-pick 1efb2e9788df5fb51a6c27d54a46494b29abcf42