fixed scope on _lastTileUrl

This commit is contained in:
Andy Gup 2014-06-11 13:09:13 -06:00
parent 4e017c9f95
commit a068e05cd9

View File

@ -485,9 +485,9 @@ define([
*/
estimateTileSize : function(callback)
{
if(_lastTileUrl)
if(this._lastTileUrl)
{
var url = this.offline.proxyPath? this.offline.proxyPath + "?" + _lastTileUrl : _lastTileUrl;
var url = this.offline.proxyPath? this.offline.proxyPath + "?" + this._lastTileUrl : this._lastTileUrl;
request.get(url,{
handleAs: "text/plain; charset=x-user-defined",
headers: {