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.

make TileID more similar to -js's TileCoord #3529

Closed

Description

@ansis
  • x values are wrapped by worlds in -js but not in -native
  • w value doesn't make sense in -native
  • names are different

Activity

  1. jfirebaugh commented on Feb 3, 2016

    @jfirebaugh
    Contributor

    Regarding tile wrapping, the changes I would like to see are:

    • Two different types: TileID (wrapped x coordinate; prefer this type unless you specifically need an unwrapped ID) and UnwrappedTileID (unwrapped x coordinate + w)
    • UnwrappedTileID has TileID wrap() const method; no other conversions are available
    • tileCover returns UnwrappedTileIDs
    • Remove Source::getLoadedTiles() and Source::getTiles()
    • Add Source::getCoveringUnwrappedTileIDs(), Source::getTile(const TileID&) and maybe Source::getTile(const UnwrappedTileID&)
    • Change TransformState::matrixFor parameter to UnwrappedTileID
    • Fix ripples from those changes
  2. jfirebaugh commented on Feb 3, 2016

    @jfirebaugh
    Contributor

    The names TileCoordinate and UnwrappedTileCoordinate would be ok with me too, but we'll need to clear away the existing TileCoordinate type first.

  3. jfirebaugh commented on Feb 11, 2016

    @jfirebaugh
    Contributor

    ⇢ #3834

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