Skip to content

slippy.PixelsToNative ignores pixels argument #128

Description

@jchamberlain

Problem

PixelsToNative should convert the accepted pixels number into projected/native units. Instead, it doesn't use the variable at all and merely returns the ratio of native to projected.

Solution

Refactor PixelsToNative to either:

  1. Convert pixels, or
  2. Not accept pixels (in which case, the function should be renamed to something like PixelsToNativeRatio).

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions