8000 Legend looks blurry, allow rendering it at higher resolution · Issue #1129 · Viglino/ol-ext · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Legend looks blurry, allow rendering it at higher 9170 resolution #1129
Open
@laundmo

Description

@laundmo

When rendering the legen on one of my monitors, it looks blurry.

Heres a screenshot of what it looks like next to some HTML text and also with my mouse overlaid:

Image

I managed to make it look much better by zooming in, refreshing the page, and then zooming back out:

Image

This makes be belive that the legend is rendered at an insufficient or odd scale/resolution. I'd love a option to set a factor in the constructor, which would allow me to opt-in to rendering the legends at higher resolutions.

I found references in the code to DEVICE_PIXEL_RATIO which was used to scale some things. For reference, heres the value of ol.has.ol.has.DEVICE_PIXEL_RATIO from the first and second screenshot:
Without Zoom: 1.090
With Zoom: 2.2222

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0