Don't use 'this' keyword in tileUrlFunction

Fixes the issue but the remote WMTS server is not working. Any alternative?

See a31ad69ec4c0cf530a5f52aad9ada649ea390204
Fixes #1965