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.

MGLMapSnapshotOptions.size should be measured in points #10088

Closed

Description

@1ec5

MGLMapSnapshotOptions.size is supposedly measured in pixels, but its type is CGSize, which is almost always measured in points when used with a screen coordinate system. (After all, the width and height can be fractional, whereas there’s no such thing as a fractional pixel.) Ideally, this property should remain CGSize-typed, but we should change MGLSnapshotter to convert to pixels behind the scenes.

/cc @fabian-guerra

Activity

  1. added
    iOS
    macOS
    MapKit parity
    on Sep 29, 2017
  2. added this to the milestone on Sep 29, 2017
  3. added
    release blocker
    on Oct 2, 2017
  4. frederoni commented on Oct 2, 2017

    @frederoni
    Contributor

    I might be mistaken but I think it's measured in points but the minimum size is 64x64 in pixels, hence the confusion. #10105 fixes the incorrect scale.

  5. fabian-guerra commented on Oct 4, 2017

    @fabian-guerra
    Contributor

    Can we close this? We specify in the docs MGLMapSnapshotOptions.size is measured in points. And @frederoni clarified in the comment above.

  6. 1ec5 commented on Oct 4, 2017

    @1ec5
    ContributorAuthor

    Yep, looks good now.

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 paritybugiOSmacOSrelease blocker

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions