Adding support for custom tile metadata (through the LayerData abstract class). Not yet finished.