commit 3bba1ed41babf9d79ee396d09cab88a719ed1e8e
parent cda4703df61623e15e59ddb6cb6fd2a2c0739fe9
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Tue, 7 Mar 2017 11:31:27 +0300
[google] fixed iteration of tiles from google layer on IE11
getElementsByTagName returns object without iterator on IE11
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/leaflet.layer.google/index.js b/src/lib/leaflet.layer.google/index.js
@@ -111,7 +111,7 @@ L.Layer.Google = L.GridLayer.extend({
_collectMapImageElements: function() {
const images = this._googleMapContainer.getElementsByTagName('img');
const tiles = {};
- for (let image of images) {
+ for (let image of [...images]) {
let url = image.src;
let match, coords;
match = url.match(this._roadRegexp);