-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Description
Similar to #1886
After upgrading to 0.7 stable, I could no longer load the WMS tileLayer, because the script stopped after throwing "Uncaught Error: No value provided for variable {s} ".
After debugging, I found that this occured when trying to find the subdomain array item using an illegal index value. This was caused by the fact that the function
var index = Math.abs(tilePoint.x + tilePoint.y) % this.options.subdomains.length;
returned a non-integer because tilePoint.x was a float (6.00000000002)
How this tilePoint.x became 6.00000002 is beyond me, but a simple fix was to use ´´´Math.round```in the expression to prevent this behaviour.
final fix:
var index = Math.round(Math.abs(tilePoint.x + tilePoint.y)) % this.options.subdomains.length;
Metadata
Metadata
Assignees
Labels
No labels
