moagrius/TileView

build() method starts to return void instead of TileView

mwe8 opened this issue · 1 comments

mwe8 commented
@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  TileView tileView = new TileView.Builder(this)
  	.setSize(3000, 3000)
  	.defineZoomLevel("tile-%d-%d.png")
  	.build();
  setContentView(tileView);
}

So, now how we can use it?

This is what I do, @mwe8 :

this.tileView = findViewById(R.id.tileview)
TileView.Builder(this.tileView)
            .setSize(MAP_WIDTH, MAP_HEIGHT)
            .setTileSize(512)
            .defineZoomLevel("map-tiles/13_%d_%d.png")
            .addReadyListener(readyDelegate)
            .build()