shramov/leaflet-plugins — pull request #61 by nazgu1 (2013-02-08 07:22:41+00:00)
Title: Added support of HTTPS protocol for Bing layers

I have page where I use Bing plugin for Leaflet and it's served by HTTPS. There was a problem on Chrome which don't allow mixed (https and http) content on page and prevents loading maps (other browsers sometimes displays warning in this case).

I added fix to this – URL of Bing maps will be determined by `window.location.protocol` and this solves problem.