question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for HDPI, XHDPI... displays

See original GitHub issue

Currently 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: leaflet

Locus: locus

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
zdilacommented, Dec 30, 2018

@cherniavskii it works perfectly. Thanks for the great support.

0reactions
cherniavskiicommented, Dec 30, 2018

@zdila I’m closing it for now, feel free to reopen if necessary

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found