Add support for HDPI, XHDPI... displays
See original GitHub issueCurrently Leaflet supports retina displays, which is something like MDPI and uses 2x scaling. Nowadays mobile displays are even more dense. Setting detectRetina: true
makes the map sharper, but it is still slightly blurred on HDPI, XHDPI, XXHDPI etc displays.
Please see attached images. One is from Locus where HDPI is used (3x) and the other is from webapp using Leaflet with detectRetina: true
(2x). Please zoom them to 100% before comparing to see the difference because browser scales them down on this page.
Leaflet:
Locus:
Issue Analytics
- State:
- Created 5 years ago
- Comments:15
Top Results From Across the Web
Is there a way to create xxhdpi, xhdpi, hdpi, mdpi and ldpi ...
Option #1: Just ship the -xxhdpi drawables and let Android downsample them for you at runtime (downside: will only work on fairly recent...
Read more >Support different pixel densities - Android Developers
Provide alternative bitmaps ; mdpi, Resources for medium-density (mdpi) screens (~160dpi). (This is the baseline density.) ; hdpi, Resources for ...
Read more >HiDPI - ArchWiki
Sublime Text 3 has full support for display scaling. Go to Preferences > Settings > User Settings and add "ui_scale": 2.0 to your...
Read more >How to Add Different Resolution Images in Android Studio?
How to Add Different Resolution Images in Android Studio? ; drawable-ldpi (low-density): Lower images quality supported by the earlier sets of ...
Read more >Icons and Splash Screens - Apache Cordova
Splash Screens for the Android Platform · xlarge (xhdpi): at least 960 × 720 · large (hdpi): at least 640 × 480 ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cherniavskii it works perfectly. Thanks for the great support.
@zdila I’m closing it for now, feel free to reopen if necessary