So Rule.toString prints a blob of JavaScript code instead of information about the zoom level. Should Rule.toString use tree.Zoom(this.zoom).toString() instead? Or just use this.zoom?
This is normally not visible when using carto normally, but may make debugging a little bit harder.
Rule.toString means to return the zoom level in its string representation:
However, for me
tree.Zoom.toString(this.zoom)
gives the following output, regardless of the value ofthis.zoom
:So Rule.toString prints a blob of JavaScript code instead of information about the zoom level. Should Rule.toString use
tree.Zoom(this.zoom).toString()
instead? Or just usethis.zoom
?This is normally not visible when using carto normally, but may make debugging a little bit harder.