Active
Project:
Leaflet
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2012 at 17:30 UTC
Updated:
26 Feb 2013 at 01:05 UTC
Hi,
Thanks again to everyone who's committed work to this project. I'm putting this module to great use. I'm having trouble figuring out where to begin to add support for Leaflet's api on retina display (as described in this github issue) to the Leaflet Drupal module. Any help would be much appreciated.
The line of code in the api is line 21 of TileLayer.js (src/layer/tile/):
detectRetina: false,
By default it's set to false. I'm not sure if the maintainers of the module would agree with turning this on by default or providing a gui option but I think a lot more end-users of the Leaflet module would be interested (particularly given the proliferation of retina devices now).
Thanks
Comments
Comment #1
rdeboerLeaflet More Maps has support for Google's high-dpi tile set, using the current versions of the Leaflet module and Leaflet JS library (0.5.x)
The Retina display is auto-detected with an auto-fallback to normal res if the device doesn't support double-pixel density.
This map demo shows Google Roadmap standard res and Google Roadmap high res side-by-side.
Hopefully the other tile-providers in this map demo will follow suit...