Merge pull request #184 from fredj/get-url-async
Change getUrlAsync parameters. r=ahocevar
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user