bug fix
updated to check for type of layer
updated 5 different ways to get tile meta data, but it doesn't exist
merge