Closed ghost closed 10 years ago
tiles and samples are in png format
There's nothing obviously wrong with the code you posted (although you probably don't need the setScaleLimits call). My first suggestion would be to not use samples, and just try 1 detail level at 1.0f scale If you can't figure it out post your tiles and full code somewhere and I'll take a look.
Turns out the detailScales were wrong, This fixed it:
mTileView.addDetailLevel(1.000f, "tiles/1000/%col%_%row%.png", "samples/100.png");
mTileView.addDetailLevel(0.500f, "tiles/500/%col%_%row%.png", "samples/100.png");
mTileView.addDetailLevel(0.250f, "tiles/250/%col%_%row%.png", "samples/100.png");
mTileView.addDetailLevel(0.125f, "tiles/125/%col%_%row%.png", "samples/100.png");
glad you got it worked out
I'm using the New York city's subway map to generate the tiles, the original image is 3200px x 3852px
I used the script found here, and set the tiles like this:
but the end result looks bad if I don't zoom in.
What am I doing wrong?