openlayers/ol3 — pull request #1897 by tschaub (2014-03-24 20:58:46+00:00)
Title: Don't use protocol relative URLs

We currently use protocol relative URLs in OSM, MapQuest, Bing, and Stamen sources. This causes issues where apps are loaded with the file "protocol" (PhoneGap/Cordova, some mobile apps).

An alternative is to use `window.location.protocol` if it starts with `http` and fall back to `http` if not.