Fix use of this in ol.source.BingMaps
This commit is contained in:
@@ -81,6 +81,7 @@ ol.source.BingMaps.prototype.handleImageryMetadataResponse =
|
|||||||
});
|
});
|
||||||
this.tileGrid = tileGrid;
|
this.tileGrid = tileGrid;
|
||||||
|
|
||||||
|
var culture = this.culture_;
|
||||||
this.tileUrlFunction = ol.TileUrlFunction.withTileCoordTransform(
|
this.tileUrlFunction = ol.TileUrlFunction.withTileCoordTransform(
|
||||||
function(tileCoord) {
|
function(tileCoord) {
|
||||||
if (tileCoord.z < zoomMin || zoomMax < tileCoord.z) {
|
if (tileCoord.z < zoomMin || zoomMax < tileCoord.z) {
|
||||||
@@ -101,7 +102,7 @@ ol.source.BingMaps.prototype.handleImageryMetadataResponse =
|
|||||||
function(subdomain) {
|
function(subdomain) {
|
||||||
var imageUrl = resource.imageUrl
|
var imageUrl = resource.imageUrl
|
||||||
.replace('{subdomain}', subdomain)
|
.replace('{subdomain}', subdomain)
|
||||||
.replace('{culture}', this.culture_);
|
.replace('{culture}', culture);
|
||||||
return function(tileCoord) {
|
return function(tileCoord) {
|
||||||
if (goog.isNull(tileCoord)) {
|
if (goog.isNull(tileCoord)) {
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user