Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

v4 raster layers load with low-resolution tiles on high-resolution screens #919

Closed

Description

@1ec5

#916 removed a special case for HiDPI that bumped up the zoom level, the idea being that vector tiles have a sufficiently high resolution that the HiDPI experience wouldn’t suffer. But this same code runs for raster layers. Now the Satellite layer is half as sharp:

before after

Activity

  1. added
    iOS
    performance
    Android
    on Feb 25, 2015
  2. 1ec5 commented on Feb 25, 2015

    @1ec5
    ContributorAuthor

    It should be possible to stick a “{ratio}” somewhere in the URL so that TileData::request() will insert @2x. The 2x variant does at least exist for mapbox.satellite – can we depend on its existence in general?

  3. self-assigned this
    on Feb 25, 2015
  4. incanus commented on Feb 25, 2015

    @incanus
    Contributor

    Yes, @2x is supported for any Mapbox-hosted raster tile. If it's a custom tile that's uploaded not from OSM-based stuff, it'll fail silently, but for everything else, it'll work.

  5. 1ec5 commented on Feb 25, 2015

    @1ec5
    ContributorAuthor

    @incanus how silently? Will we need to fall back to a 1× URL or will mapbox just return a 1× tile anyways?

  6. incanus commented on Feb 25, 2015

    @incanus
    Contributor

    The latter. I'd say supporting non-auto-retina raster tiles in GL is not a major use case so this is fine.

  7. jfirebaugh commented on Feb 25, 2015

    @jfirebaugh
    Contributor

    All Mapbox v4 raster tiles support @2x.

    Relevant JS code: 1, 2

  8. incanus commented on Feb 25, 2015

    @incanus
    Contributor

    I'm talking about such cases as this justin.NACIS2012, which I created in TileMill and uploaded rasters of.

    1x:

    2x:

    So, the sizing is just naively blown up, but the URL works.

    I'd be on the creator to create a 2x good-looking version (which I did at justin.NACIS2012Retina).

  9. added 4 commits that reference this issue on Feb 27, 2015
    2a63d41
    bfbcfd5
    41c0137
    a6c8a76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AndroidiOSperformance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions