Update Layer.hx

support compressed format

code from haxePunkTmx