code: public TileBasedLayer createLayer(String id, TileConfiguration conf, final TileRenderer tileRenderer) {
  		return new AbstractTileBasedLayer(id, conf) {
  			@Override
  			public TileRenderer getTileRenderer() {
  				return tileRenderer;
  			}
  		};
  	}
docs: Create a new tile based layer with an existing tile renderer.
  
  @param id           The unique ID of the layer.
  @param conf         The tile configuration.
  @param tileRenderer The tile renderer to use.
  @return A new tile based layer.