From e62178759c8f9f3d3f395b909885a095dfc866e4 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Sun, 24 Mar 2013 19:26:34 +0100 Subject: [PATCH] Fix use of this in ol.source.BingMaps --- src/ol/source/bingmapssource.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/source/bingmapssource.js b/src/ol/source/bingmapssource.js index bb32e7ccf8..d4dd57b24d 100644 --- a/src/ol/source/bingmapssource.js +++ b/src/ol/source/bingmapssource.js @@ -81,6 +81,7 @@ ol.source.BingMaps.prototype.handleImageryMetadataResponse = }); this.tileGrid = tileGrid; + var culture = this.culture_; this.tileUrlFunction = ol.TileUrlFunction.withTileCoordTransform( function(tileCoord) { if (tileCoord.z < zoomMin || zoomMax < tileCoord.z) { @@ -101,7 +102,7 @@ ol.source.BingMaps.prototype.handleImageryMetadataResponse = function(subdomain) { var imageUrl = resource.imageUrl .replace('{subdomain}', subdomain) - .replace('{culture}', this.culture_); + .replace('{culture}', culture); return function(tileCoord) { if (goog.isNull(tileCoord)) { return undefined;