add {r} format to url, which returns @2x when retina detected and enabled
fix retina condition
Merge pull request #2296 from urbaniak/retina-tile-url

add {r} format to url, which returns @2x when retina detected and enabled