openlayers/ol3 — pull request #2308 by klokan (2014-07-05 23:38:41+00:00)
Title: Add tilePixelRatio option to ol.source.XYZ for #1905

This PR adds a tilePixelRatio option to ol.source.XYZ, where it was still missing.

It contains an example demonstrating the functionality. Code is inspired by #2216 (thanks @elemoine).

The discussion at #1905 about "High DPI (Retina) support for raster tile layers" is with this solved (but the MapBox specific ol.tilegrid specification which is required.