private static bool IsRasterLayer(RuntimeMapLayer layer) { var cls = layer.GetClassDefinition(); return IsRasterClass(cls); }