Tile.Image tests: add missing scope params (see #184)
This commit is contained in:
@@ -85,8 +85,8 @@
|
|||||||
var layer = new OpenLayers.Layer.WMS(
|
var layer = new OpenLayers.Layer.WMS(
|
||||||
"Name",
|
"Name",
|
||||||
"http://labs.metacarta.com/TESTURL?",
|
"http://labs.metacarta.com/TESTURL?",
|
||||||
{layers: 'basic'}, {async: true, getURLasync: function(bounds, callback) {
|
{layers: 'basic'}, {async: true, getURLasync: function(bounds, callback, scope) {
|
||||||
callback(this.getURL(bounds));
|
callback.call(scope, this.getURL(bounds));
|
||||||
}}
|
}}
|
||||||
);
|
);
|
||||||
map.addLayer(layer);
|
map.addLayer(layer);
|
||||||
|
|||||||
Reference in New Issue
Block a user