Closed tomgasson closed 7 years ago
@tomgasson alternatively, check my comment on https://github.com/gmaclennan/leaflet-bing-layer/commit/408f43e18ac800eedbbbb3bec4072dd120974f22
Yep, that's a better way to do it. Code updated to suit
You could use location.protocol instead of hardcoding the scheme.
It would be great if this PR could get integrated into master.
@tomgasson thanks for this, so sorry for the delay, I haven't been checking these repos for a while.
Even though the metadata URL is called via
https://
from #4, it still returns ahttp://
imageURL. Here I'm just find-replacing that url. Could also strip it back to a protocol relative url, but that's now ill-advised (see the update here).