Don't use 'this' keyword in tileUrlFunction

See a31ad69ec4c0cf530a5f52aad9ada649ea390204
Fixes #1965
Use WMTS server from services.arcgisonline.com
Merge pull request #1967 from fredj/tileUrlFunction-this

Don't use 'this' keyword in tileUrlFunction