Don't use 'this' keyword in tileUrlFunction

See a31ad69ec4c0cf530a5f52aad9ada649ea390204
Fixes #1965