Use a template tag to get the layer type.