Merge pull request #184 from fredj/get-url-async

Change getUrlAsync parameters. r=ahocevar
This commit is contained in:
Frédéric Junod
2012-02-02 05:59:13 -08:00
4 changed files with 15 additions and 19 deletions

View File

@@ -85,9 +85,8 @@
var layer = new OpenLayers.Layer.WMS(
"Name",
"http://labs.metacarta.com/TESTURL?",
{layers: 'basic'}, {async: true, getURLasync: function(bounds, scope, url, callback) {
scope.url = this.getURL(bounds);
callback.call(scope);
{layers: 'basic'}, {async: true, getURLasync: function(bounds, callback) {
callback(this.getURL(bounds));
}}
);
map.addLayer(layer);