Use the layer property instead of the location