Change getLayerName() to getName()