Use http protocol for non-http (i.e. file) URIs (see #700)
This commit is contained in:
@@ -106,9 +106,10 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {
|
||||
* this is undocumented and the Imagery Metadata API always returns HTTP
|
||||
* urls.
|
||||
*
|
||||
* Default is
|
||||
* Default is '', unless when executed from a file:/// uri, in which case
|
||||
* it is 'http:'.
|
||||
*/
|
||||
protocol: '',
|
||||
protocol: ~window.location.href.indexOf('http') ? '' : 'http:',
|
||||
|
||||
/**
|
||||
* Constructor: OpenLayers.Layer.Bing
|
||||
|
||||
Reference in New Issue
Block a user