Skip to content

Support tile size that differ from 256x256 #48

@Joohansson

Description

@Joohansson

Maybe I missing something but I can't get it to work with 512x512 tiles. If I change the kDefaultTileSize in JCTiedView.m to 512 it loads the wrong tiles. I can trick it by changing how it calculates rows and columns and get correct tiles drawn in every zoom level but the resolution is not correct. Each 512 tile is loaded but the size is reduced to 256 somewhere when it's drawn on the actual screen. I can see when I zoom in it's only half the sharpness. Doubling the contentSize when creating the scrollView does not help either.

let scrollView = JCTiledScrollView(frame: self.view.frame, contentSize: imageSize)

My guess is somewhere in the native library the frames are defaulting to 256. I would really appreciate if someone could give me a hint here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions