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.

Snapshotter scales incorrectly #10089

Closed
Closed

Description

@1ec5

If I create an MGLMapSnapshotOptions object with size set to 456×480 on a 2× display, MGLMapSnapshotter produces an image 1,824 pixels wide by 1,920 pixels tall, which is what I would expect on a 4× display if MGLMapSnapshotOptions.size were measured in points (#10088). As the property is currently documented, however, a size of 456×480 should result in a 456×480-pixel image regardless of the screen resolution.

/ref #10020 (comment)
/cc @fabian-guerra @frederoni

Activity

  1. added
    iOS
    macOS
    MapKit parity
    on Sep 29, 2017
  2. added this to the milestone on Sep 29, 2017
  3. fabian-guerra commented on Sep 29, 2017

    @fabian-guerra
    Contributor

    As #10020 (comment) we do handle internally the scale. The output image is scaled accordingly. 456x480 will scale as 1:1 on non-retina screens otherwise will be 1824x1920 px on a 4× display.

  4. 1ec5 commented on Oct 2, 2017

    @1ec5
    ContributorAuthor

    Regardless of whether we internally handle the scale, MGLMapSnapshotter is incorrectly scaling the output image. The example above was on a 2× display, not a 4× display, yet MGLMapSnapshotter was behaving as if it was on a 4× display and size was measured in points. 456×480 pixels should mean 456×480 pixels regardless of screen resolution.

  5. added
    beta blocker
    on Oct 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    MapKit paritybeta blockerbugiOSmacOS

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions