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.

two static renders in a row from same map w/ diff ratio breaks #1273

Closed

Description

@samanpwbb

First render, with ratio of 2:
500x200 2x

Second render, ratio is 1:
500x200

Third render, ratio still 1:
500x200-1

Looks like the ratio gets set after render is complete.

Activity

  1. mikemorris commented on Apr 15, 2015

    @mikemorris
    Contributor

    This happens when implementing map object caching, requesting a @2x static image, then a @1x static image, going from @1x to @2x has similar problems. Refreshing to request the changed dimensions a second time (@1x, @2x, @2x) shows the correct image, because the view has been resized to the same dimensions as the prospective render by then.

    current: 2
    prospective: 1
    painter->render
    DEBUG [Android] Map::resize
    DEBUG [Android] Transform::resize
    DEBUG [Android] Transform::resize post lock
    DEBUG [Android] Transform ::resize exit true
    DEBUG [Android] Map::resize exit
    view.swap
    current: 1
    prospective: 1
    

    Backtrace:

  2. kkaefer commented on May 18, 2015

    @kkaefer
    Member

    Is this still happening?

  3. mikemorris commented on Jul 8, 2015

    @mikemorris
    Contributor

    This should be resolved by #1799

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions